删除多余学生的测验数据
This commit is contained in:
parent
fa4a2eb0dd
commit
699d0e22dd
|
@ -0,0 +1,9 @@
|
|||
class DeleteExerciseUser < ActiveRecord::Migration
|
||||
def up
|
||||
eus=ExerciseUser.where("score is null and status=?",0)
|
||||
eus.delete_all
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20151209085942) do
|
||||
ActiveRecord::Schema.define(:version => 20151215105425) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
@ -1161,7 +1161,6 @@ ActiveRecord::Schema.define(:version => 20151209085942) do
|
|||
t.datetime "updated_at", :null => false
|
||||
t.boolean "locked", :default => false
|
||||
t.integer "sticky", :default => 0
|
||||
t.integer "org_subfield_id"
|
||||
end
|
||||
|
||||
create_table "org_member_roles", :force => true do |t|
|
||||
|
@ -1188,7 +1187,6 @@ ActiveRecord::Schema.define(:version => 20151209085942) do
|
|||
t.string "name"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.string "field_type"
|
||||
end
|
||||
|
||||
create_table "organizations", :force => true do |t|
|
||||
|
|
Loading…
Reference in New Issue