Apply Style/HashSyntax rubocop rule

We were already using it almost everywhere.
This commit is contained in:
Javi Martín
2019-10-26 01:04:57 +02:00
parent 70da5a3801
commit b5eeb3f32f
7 changed files with 18 additions and 15 deletions

View File

@@ -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

View File

@@ -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