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

11 lines
270 B
Ruby
Raw Permalink Normal View History

2015-10-06 13:55:12 -04:00
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