First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
12
db/migrate/20121223135447_user_roles_table.rb
Normal file
12
db/migrate/20121223135447_user_roles_table.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue