You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
361 B

class CreatePermissions < ActiveRecord::Migration
def change
create_table :permissions do |t|
t.references :domain # the domain to whom permission is being given
t.references :user # the user newly permitted to manage the domain
t.timestamps
end
add_index :permissions, :domain_id
add_index :permissions, :user_id
end
end