2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-10-13 16:55:03 +01:00
|
|
|
class CreateGroups < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :groups do |t|
|
|
|
|
t.string :name
|
|
|
|
t.integer :owner_id
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :groups
|
|
|
|
end
|
|
|
|
end
|