Sha256: 230f5b0e22decdd7baf975f9db0e6304ed80583cedd25b14b2bbaacf75e8f493

Contents?: true

Size: 249 Bytes

Versions: 16

Compression:

Stored size: 249 Bytes

Contents

class UpdateDefaultValueForPageType < ActiveRecord::Migration
  def up
    change_column :qbrick_pages, :page_type, :string, :default => Qbrick::PageType::CONTENT
  end

  def down
    change_column_default(:qbrick_pages, :page_type, nil)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.7 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.10 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.9 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.8 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.7 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.6 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.5 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.4 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.3 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.2 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.1 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.6.0 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.5.2 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.5.1 db/migrate/16_update_default_value_for_page_type.rb
qbrick-2.5.0 db/migrate/16_update_default_value_for_page_type.rb