mmsc_app/migrations/00280_create_gallery_images.rb
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +02: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