大学表创建

This commit is contained in:
Wen 2014-03-18 15:19:31 +08:00
parent 5200e238a9
commit ebd09e4b1a
2 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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"