rosa-build/db/migrate/20111022170400_create_right...

16 lines
294 B
Ruby
Raw Normal View History

2011-10-23 22:39:44 +01:00
class CreateRights < ActiveRecord::Migration
def self.up
create_table :rights do |t|
t.string :name, :null => false
t.string :controller, :null => false
t.string :action, :null => false
t.timestamps
end
end
def self.down
drop_table :rights
end
end