panier_app/migrations/00280_create_gallery_images.rb
Nicolas Bally d744a04b28 initial
2020-10-30 22:26:40 +01:00

15 lines
369 B
Ruby

class CreateGalleryImages < ActiveRecord::Migration[6.0]
def change
create_table :gallery_images do |t|
t.string :title
t.text :description
t.string :tags
t.integer :position
t.references :image_file, index: true
t.references :gallery_content, index: true
t.timestamps
end
end
end