photomix/db/migrate/20090604202928_create_permissions.rb

16 lines
320 B
Ruby
Raw Normal View History

2009-06-05 14:18:03 +02:00
class CreatePermissions < ActiveRecord::Migration
def self.up
create_table "permissions", :force => true do |t|
t.integer :permissible_id
t.string :permissible_type
t.string :action
t.boolean :granted
t.timestamps
end
end
def self.down
drop_table "permissions"
end
end