socialforge/db/migrate/20151102084419_create_organ...

19 lines
335 B
Ruby
Raw Normal View History

2015-11-02 17:22:09 +08:00
class CreateOrganization < ActiveRecord::Migration
def up
create_table :organizations do |t|
t.string :name
t.text :description
t.integer :creator_id
t.integer :home_id
t.string :domain
t.boolean :is_public
t.timestamps
end
end
def down
drop_table :organizations
end
end