Skip to content

Commit

Permalink
Merge pull request #137 from zendesk/bquorning/extract-migration-logic
Browse files Browse the repository at this point in the history
Extract migration logic
  • Loading branch information
bquorning authored Oct 13, 2017
2 parents 6a59166 + c616ac9 commit e32f84d
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 309 deletions.
3 changes: 0 additions & 3 deletions lib/active_record_shards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
require 'active_record_shards/shard_selection'
require 'active_record_shards/connection_switcher'
require 'active_record_shards/association_collection_connection_selection'
require 'active_record_shards/migration'
require 'active_record_shards/default_slave_patches'
require 'active_record_shards/schema_dumper_extension'

module ActiveRecordShards
def self.rails_env
Expand All @@ -26,6 +24,5 @@ def self.rails_env
ActiveRecord::Relation.include(ActiveRecordShards::DefaultSlavePatches::ActiveRelationPatches)
ActiveRecord::Associations::CollectionProxy.include(ActiveRecordShards::AssociationCollectionConnectionSelection)
ActiveRecord::Associations::Builder::HasAndBelongsToMany.include(ActiveRecordShards::DefaultSlavePatches::HasAndBelongsToManyBuilderExtension)
ActiveRecord::SchemaDumper.prepend(ActiveRecordShards::SchemaDumperExtension)

ActiveRecord::InternalMetadata.not_sharded
100 changes: 0 additions & 100 deletions lib/active_record_shards/migration.rb

This file was deleted.

41 changes: 0 additions & 41 deletions lib/active_record_shards/schema_dumper_extension.rb

This file was deleted.

12 changes: 0 additions & 12 deletions test/migrations/20110824010216_shard_migration.rb

This file was deleted.

12 changes: 0 additions & 12 deletions test/migrations/20110829215912_account_migration.rb

This file was deleted.

99 changes: 0 additions & 99 deletions test/migrator_test.rb

This file was deleted.

42 changes: 0 additions & 42 deletions test/schema_dumper_extension_test.rb

This file was deleted.

0 comments on commit e32f84d

Please sign in to comment.