大学表创建
This commit is contained in:
parent
5200e238a9
commit
ebd09e4b1a
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue