1
0
Fork 0
dokkan-data-rails/db/migrate/20151006182022_create_cards_links.rb

10 lines
270 B
Ruby

class CreateCardsLinks < ActiveRecord::Migration
def change
create_join_table :cards, :links do |t|
t.references :card, index: true, foreign_key: true
t.references :link, index: true, foreign_key: true
t.timestamps null: false
end
end
end