photomix/db/migrate/20090604202928_create_permissions.rb
2009-06-05 14:18:03 +02:00

16 lines
No EOL
320 B
Ruby

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