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

25 lines
766 B
Ruby

class CreateImageContents < ActiveRecord::Migration[6.0]
def change
create_table :image_contents do |t|
t.references :image_file, index: true
t.integer :width
t.integer :height
t.string :alignement
t.boolean :expandable, :default => false
t.string :style
t.string :alt
t.references :cible, index: true
t.string :cible_type
t.boolean :with_cible, :default => false
t.boolean :popup, :default => false
t.integer :margin_top
t.integer :margin_left
t.integer :margin_right
t.integer :margin_bottom
t.boolean :with_legend, :default => false
t.timestamps
end
end
end