beagle_app/db/migrate/20150123213639_create_cat_taxons.rb
Nicolas Bally 7b6cba2128 initial
2015-01-27 23:13:36 +01:00

13 lines
307 B
Ruby

class CreateCatTaxons < ActiveRecord::Migration
def change
create_table :cat_taxons do |t|
t.references :t_cat, index: true
t.references :taxon, index: true
t.timestamps null: false
end
add_foreign_key :cat_taxons, :t_cats
add_foreign_key :cat_taxons, :taxons
end
end