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

15 lines
No EOL
287 B
Ruby

class CreateRoleMemberships < ActiveRecord::Migration
def self.up
create_table :role_memberships do |t|
t.integer :roleable_id
t.string :roleable_type
t.integer :role_id
t.timestamps
end
end
def self.down
drop_table :role_memberships
end
end