修改部分学生作业评分居然是6分

This commit is contained in:
sw 2014-11-27 16:14:00 +08:00
parent fe93a9c2c5
commit bb1c1a0bb0
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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