Apply Style/HashSyntax rubocop rule
We were already using it almost everywhere.
This commit is contained in:
@@ -10,6 +10,6 @@ class CreateInappropiateFlags < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
add_index :inappropiate_flags, [:flaggable_type, :flaggable_id]
|
||||
add_index :inappropiate_flags, [:user_id, :flaggable_type, :flaggable_id], :name => "access_inappropiate_flags"
|
||||
add_index :inappropiate_flags, [:user_id, :flaggable_type, :flaggable_id], name: "access_inappropiate_flags"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,11 +9,11 @@ class AddTranslatePages < ActiveRecord::Migration[4.2]
|
||||
{ migrate_data: true }
|
||||
)
|
||||
|
||||
change_column :site_customization_pages, :title, :string, :null => true
|
||||
change_column :site_customization_pages, :title, :string, null: true
|
||||
end
|
||||
|
||||
def self.down
|
||||
SiteCustomization::Page.drop_translation_table!
|
||||
change_column :site_customization_pages, :title, :string, :null => false
|
||||
change_column :site_customization_pages, :title, :string, null: false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user