修改bug《测试版:课程列表--点击个别课程返回500错误》

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-10-31 14:55:52 +08:00
parent 94a4c0037a
commit bdc38014ac
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
#encoding=UTF-8
class ChangeDataForCourses < ActiveRecord::Migration
def up
sql = "UPDATE courses set school_id = 117 where id =58"
execute(sql)
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 => 20141030071656) do
ActiveRecord::Schema.define(:version => 20141031065238) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false