summaryrefslogtreecommitdiff
path: root/db/migrate/20140427171644_create_team_user_join_table.rb
blob: f3b57fc9a926d125f507cea21c5918525f44c8c3 (plain)
1
2
3
4
5
6
7
8
class CreateTeamUserJoinTable < ActiveRecord::Migration
  def change
    create_join_table :teams, :users do |t|
      # t.index [:team_id, :user_id]
      # t.index [:user_id, :team_id]
    end
  end
end