From f528584345123e085bbd3efba52b12c3dd0eab6a Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 14 Apr 2015 20:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=81=E7=A7=BB--=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=B1=BB=E5=9E=8B=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20150414115406_import_newtype_data_to_project.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20150414115406_import_newtype_data_to_project.rb diff --git a/db/migrate/20150414115406_import_newtype_data_to_project.rb b/db/migrate/20150414115406_import_newtype_data_to_project.rb new file mode 100644 index 000000000..1db4192b6 --- /dev/null +++ b/db/migrate/20150414115406_import_newtype_data_to_project.rb @@ -0,0 +1,9 @@ +class ImportNewtypeDataToProject < ActiveRecord::Migration + def up + sql = ("update projects set project_new_type=1") + execute(sql) + end + + def down + end +end