13 lines
219 B
Ruby
13 lines
219 B
Ruby
|
|
class UserRolesTable < ActiveRecord::Migration
|
||
|
|
def self.up
|
||
|
|
create_table :roles_users, :id => false do |t|
|
||
|
|
t.references :role, :user
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
def self.down
|
||
|
|
drop_table :roles_users
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|