2011-10-13 16:55:03 +01:00
|
|
|
class CreateGroups < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :groups do |t|
|
|
|
|
t.string :name
|
2014-03-14 17:41:49 +00:00
|
|
|
t.integer :owner_id, references: nil
|
2011-10-13 16:55:03 +01:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :groups
|
|
|
|
end
|
|
|
|
end
|