We forgot to add these changes to pull requests which were in development before we upgraded to Rails 5. We're also moving the rubocop rules to the basic files, so we're notified when we inherit from `ActiveRecord::Base`.
9 lines
349 B
Ruby
9 lines
349 B
Ruby
class AddConfigToDownloadSettings < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :download_settings, :config, :integer, default: 0, null: false
|
|
|
|
remove_index :download_settings, name: "index_download_settings_on_name_model_and_name_field"
|
|
add_index :download_settings, [:name_model, :name_field, :config], unique: true
|
|
end
|
|
end
|