DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
16 lines
401 B
Ruby
16 lines
401 B
Ruby
class AddHomePageToLegislationProcesses < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :legislation_processes, :homepage_enabled, :boolean, default: false
|
|
|
|
reversible do |dir|
|
|
dir.up do
|
|
Legislation::Process.add_translation_fields! homepage: :text
|
|
end
|
|
|
|
dir.down do
|
|
remove_column :legislation_process_translations, :homepage
|
|
end
|
|
end
|
|
end
|
|
end
|