jipe_app/db/migrate/20160518074442_create_image_actu_langs.rb
2017-08-14 10:53:30 +02:00

16 lines
417 B
Ruby

class CreateImageActuLangs < ActiveRecord::Migration
def change
create_table :image_actu_langs do |t|
t.references :lang_site, index: true
t.references :image_actu, index: true
t.string :title
t.text :description
t.string :slug
t.timestamps null: false
end
add_foreign_key :image_actu_langs, :lang_sites
add_foreign_key :image_actu_langs, :image_actus
end
end