Sha256: 9381178f211be3ded484fdb04c82ac86cb53d77049b4aeb157ca53f56fb2d285

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

class AddExtraColsToPwbSections < ActiveRecord::Migration[5.0]
  def change
    add_column :pwb_sections, :flags, :integer, default: 0, index: true, null: false
    add_column :pwb_sections, :details, :json, default: {}
    add_column :pwb_sections, :is_page, :boolean, default: false, index: true
    add_column :pwb_sections, :show_in_top_nav, :boolean, default: false, index: true
    add_column :pwb_sections, :show_in_footer, :boolean, default: false, index: true
    add_column :pwb_sections, :key, :string, index: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pwb-1.2.0 db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb
pwb-1.1.1 db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb
pwb-1.0.0 db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb
pwb-0.1.1 db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb
pwb-0.1.0 db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb