修改部分学生作业评分居然是6分
This commit is contained in:
parent
fe93a9c2c5
commit
bb1c1a0bb0
|
@ -0,0 +1,9 @@
|
|||
class UpdateStudentScore < ActiveRecord::Migration
|
||||
def up
|
||||
sql = ActiveRecord::Base.connection()
|
||||
sql.update_sql("update seems_rateable_rates set stars = 5 where stars > 5")
|
||||
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 => 20141120091234) do
|
||||
ActiveRecord::Schema.define(:version => 20141127072548) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
|
Loading…
Reference in New Issue