Skip to content

Commit

Permalink
Changes links to references
Browse files Browse the repository at this point in the history
  • Loading branch information
kinseyost committed Sep 28, 2016
1 parent e3f00e4 commit e8bc844
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions db/migrate/20160927043409_create_admin_users_pages_join.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ class CreateAdminUsersPagesJoin < ActiveRecord::Migration[5.0]

def up
create_table :admin_users_pages, :id => false do |t| # Remove the primary key **Very important
t.integer "admin_user_id"
t.integer "page_id"
t.refereneces :page
t.refereneces :admin_user
end
# You can add multiple indexes at the same time
add_index :admin_users_pages, ["admin_user_id", "page_id"]
end

def down
Expand Down

0 comments on commit e8bc844

Please sign in to comment.