Class: CreateJoinTableRolesPermissions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateJoinTableRolesPermissions
- Defined in:
- lib/migrations/20150221024807_create_join_table_roles_permissions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 |
# File 'lib/migrations/20150221024807_create_join_table_roles_permissions.rb', line 2 def change create_table :roles_permissions do |t| t.belongs_to :role t.belongs_to :permission end end |