There are two reasons for this change: 1. Past migrations depending on models will not work once a model is removed, and they won't work if we remove Globalize either 2. We were getting a conflict in the schema file; when run under Rails 5.0, these migrations were generating a different schema than in Rails 5.1, due to the way the `create_translation_table!` method handles the `id: :serial` attribute.
7 lines
244 B
Ruby
7 lines
244 B
Ruby
class AddHomePageToLegislationProcesses < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :legislation_processes, :homepage_enabled, :boolean, default: false
|
|
add_column :legislation_process_translations, :homepage, :text
|
|
end
|
|
end
|