From bdc38014acd3accecb54a250660942c9874ac36f Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Fri, 31 Oct 2014 14:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=E3=80=8A=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=89=88=EF=BC=9A=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?--=E7=82=B9=E5=87=BB=E4=B8=AA=E5=88=AB=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E8=BF=94=E5=9B=9E500=E9=94=99=E8=AF=AF=E3=80=8B=20Signed-off-b?= =?UTF-8?q?y:=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20141031065238_change_data_for_courses.rb | 10 ++++++++++ db/schema.rb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20141031065238_change_data_for_courses.rb 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