qi6_app/db/migrate/20180220162413_create_popups.rb
2019-05-17 12:30:45 +02:00

19 lines
407 B
Ruby

class CreatePopups < ActiveRecord::Migration[6.0]
def change
create_table :popups do |t|
t.boolean :enabled
t.datetime :start_at
t.datetime :end_at
t.integer :nbr_days
t.integer :nbr_view
t.integer :nbr_occurrences
t.string :title
t.boolean :logo
t.text :description
t.references :lang_site
t.timestamps null: false
end
end
end