diff --git a/db/migrate/20141031065238_change_data_for_courses.rb b/db/migrate/20141031065238_change_data_for_courses.rb new file mode 100644 index 000000000..f3ee0ab54 --- /dev/null +++ b/db/migrate/20141031065238_change_data_for_courses.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index ddeef8e19..957e603b7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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