transformeurs_app/db/migrate/20180220162413_create_popups.rb
Nicolas Bally 02906ed45e initial
2018-08-06 17:06:11 +02:00

19 lines
402 B
Ruby

class CreatePopups < ActiveRecord::Migration
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