From ebd09e4b1a04d2d0cc2217ea3f78b4e6e2ab89c9 Mon Sep 17 00:00:00 2001 From: Wen Date: Tue, 18 Mar 2014 15:19:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=AD=A6=E8=A1=A8=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20140318021747_create_schools.rb | 12 ++++++++++++ db/schema.rb | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20140318021747_create_schools.rb diff --git a/db/migrate/20140318021747_create_schools.rb b/db/migrate/20140318021747_create_schools.rb new file mode 100644 index 000000000..3771f3891 --- /dev/null +++ b/db/migrate/20140318021747_create_schools.rb @@ -0,0 +1,12 @@ +class CreateSchools < ActiveRecord::Migration + + def change + create_table :schools do |t| + t.string :name + t.string :province + t.string :city + end + end + + +end diff --git a/db/schema.rb b/db/schema.rb index 071a4b44c..7721d8fdc 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 => 20140318011702) do +ActiveRecord::Schema.define(:version => 20140318021747) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false @@ -598,6 +598,12 @@ ActiveRecord::Schema.define(:version => 20140318011702) do t.string "issues_visibility", :limit => 30, :default => "default", :null => false end + create_table "schools", :force => true do |t| + t.string "name" + t.string "province" + t.string "city" + end + create_table "seems_rateable_cached_ratings", :force => true do |t| t.integer "cacheable_id", :limit => 8 t.string "cacheable_type"