-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
81 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop | ||
# to ignore them, so only the ones explicitly set in this file are enabled. | ||
DisabledByDefault: true | ||
|
||
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. | ||
Style/HashSyntax: | ||
Enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class Demography::Country < ActiveRecord::Base | ||
has_many :citizens, :class_name => 'Demography::Citizen' | ||
has_many :citizens, class_name: 'Demography::Citizen' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class User < ActiveRecord::Base | ||
has_one :citizen, :class_name => 'Demography::Citizen' | ||
has_one :citizen, class_name: 'Demography::Citizen' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
spec/dummy/db/migrate/20120224204546_add_demography_citizens_active_column.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class AddDemographyCitizensActiveColumn < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column 'demography.citizens', :active, :boolean, :null => false, :default => false | ||
add_column 'demography.citizens', :active, :boolean, null: false, default: false | ||
|
||
add_index 'demography.citizens', [:country_id, :user_id], :unique => true, :where => 'active' | ||
add_index 'demography.citizens', [:country_id, :user_id], unique: true, where: 'active' | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20120301153650_demography_population_statistics.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20120301171826_remove_demography_nationalities.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class RemoveDemographyNationalities < ActiveRecord::Migration[5.2] | ||
def change | ||
drop_table 'nationalities', :schema => 'demography' | ||
drop_table 'nationalities', schema: 'demography' | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20120517211922_add_partial_functional_index.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddPartialFunctionalIndex < ActiveRecord::Migration[5.2] | ||
def change | ||
add_index :pets, ["upper(color)"], :where => 'name IS NULL' | ||
add_index :pets, ["upper(color)"], where: 'name IS NULL' | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20120904113806_add_concurrently_index_to_users_on_email.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddConcurrentlyIndexToUsersOnEmail < ActiveRecord::Migration[5.2] | ||
def change | ||
add_index :users, :email, :concurrently => true | ||
add_index :users, :email, concurrently: true | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20120904114121_add_concurrently_index_with_foreign_key.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddConcurrentlyIndexWithForeignKey < ActiveRecord::Migration[5.2] | ||
def change | ||
add_foreign_key :pets, :users, :exclude_index => true#, :concurrent_index => true | ||
add_foreign_key :pets, :users, exclude_index: true#, :concurrent_index => true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
class CreateExtension < ActiveRecord::Migration[5.2] | ||
def change | ||
create_extension "fuzzystrmatch" | ||
drop_extension "fuzzystrmatch", :mode => :cascade | ||
drop_extension "fuzzystrmatch", mode: :cascade | ||
create_extension "fuzzystrmatch" | ||
|
||
# Test names with dashes are escaped correctly. | ||
# https://github.com/TMXCredit/pg_power/pull/40 | ||
create_extension "uuid-ossp" | ||
drop_extension "uuid-ossp" | ||
|
||
create_extension "btree_gist", :schema_name => 'demography' | ||
add_index :pets, :user_id, :using => :gist, :name => 'index_pets_on_user_id_gist' | ||
add_index :pets, "to_tsvector('english', name)", :using => :gist, :name => 'index_pets_on_to_tsvector_name_gist' | ||
create_extension "btree_gist", schema_name: 'demography' | ||
add_index :pets, :user_id, using: :gist, name: 'index_pets_on_user_id_gist' | ||
add_index :pets, "to_tsvector('english', name)", using: :gist, name: 'index_pets_on_to_tsvector_name_gist' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.