Class: CreateTrippleJoinTableUserGroupRole

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/migrations/20150221025001_create_tripple_join_table_user_group_role.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/migrations/20150221025001_create_tripple_join_table_user_group_role.rb', line 2

def change
  create_table :group_memberships do |t|
    t.belongs_to :user
    t.belongs_to :group
    t.belongs_to :role
  end
end