Sha256: 34b0aa467fa7c34a7cdc628950f25247c9d61cff4d90a6bb40077b0010c3e73b

Contents?: true

Size: 353 Bytes

Versions: 8

Compression:

Stored size: 353 Bytes

Contents

class AddControlFieldsToPromotions < ActiveRecord::Migration[5.1]
  def change
  	add_column :promotions, :show_popup, :boolean, default: true, :null => false
  	add_column :promotions, :show_only_on_homepage, :boolean, default: true, :null => false
  	add_column :promotions, :popup_lifespan_in_minutes, :integer, default: 60, :null => false
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhatu-0.1.25 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.24 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.23 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.22 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.21 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.20 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.19 db/migrate/20171203114530_add_control_fields_to_promotions.rb
dhatu-0.1.18 db/migrate/20171203114530_add_control_fields_to_promotions.rb