idn_app/db/migrate/20160216085123_create_realisation_images.rb
2016-07-29 20:23:40 +02:00

14 lines
367 B
Ruby
Executable File

class CreateRealisationImages < ActiveRecord::Migration
def change
create_table :realisation_images do |t|
t.string :title
t.text :description
t.references :realisation, index: true
t.integer :position
t.references :image_file
t.timestamps null: false
end
add_foreign_key :realisation_images, :realisations
end
end