active_record_migrations 5.2.0.1 → 6.1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ee81d8bf6c075bd9165554d285296aef327d8fce412aca194fe60e1f4dcaf76
4
- data.tar.gz: af99490c4103dfbffa343c5f2f9ba4866219b60e04fca1ee0d50989d6212c8e7
3
+ metadata.gz: d8464558e49d8b71a888ad969d2aa21aa23ccbc7b61fd7a194c57b4cecf7d449
4
+ data.tar.gz: f245d320cd26b862670b8f661a201afc0d057fbada2570dc1819c3729bc5314c
5
5
  SHA512:
6
- metadata.gz: 28c278c6e5adf920e040d1c8b734865ea5b3f6ecc45f1877ec1368e5061b4af4e6a60f834830e8c2f365af68139b1f2462cd9f4c6c2e5bdd71388108d6a81e34
7
- data.tar.gz: a445b58cfdd775282a581799d4bd1db5613335456634bb91b6462c1f8ce6a2308102100a700569929d4191f4feb229452dba61960afe353d7dc18adebd6b8c43
6
+ metadata.gz: e3a45eddf967ed83a95a849e467dcef18d1466c1d37d6c67ed00aaeb9226aa5c35d086f960d4a9d01a75f552ff9d831fa17078db2a6e15e6961f914c1dfef4ec
7
+ data.tar.gz: 576f001ebd407d37f60eb631694a61022d74a0e9843e78ab883feee3cc4f905baa5e0b22d2a7082679ad31e2b60d394944e454d28844b3a461124757cf23fa85
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler"
22
22
  spec.add_dependency "rake"
23
- spec.add_dependency "railties", ">= 5.0.2"
24
- spec.add_dependency "activerecord", ">= 5.0.2"
23
+ spec.add_dependency "railties", ">= 6.1.1"
24
+ spec.add_dependency "activerecord", ">= 6.1.1"
25
25
  end
26
26
 
@@ -28,7 +28,7 @@ module ActiveRecordMigrations
28
28
  DatabaseTasks.seed_loader = configurations.seed_loader
29
29
  ActiveRecord::Base.configurations = DatabaseTasks.database_configuration =
30
30
  configurations.database_configuration
31
- DatabaseTasks.current_config = configurations.database_configuration[configurations.environment]
31
+ ActiveRecord::Base.establish_connection ActiveRecord::Tasks::DatabaseTasks.env.to_sym
32
32
  DatabaseTasks.db_dir = configurations.db_dir
33
33
  DatabaseTasks.migrations_paths = configurations.migrations_paths
34
34
  DatabaseTasks.root = Rails.root
@@ -9,7 +9,7 @@ if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new('5.2.0')
9
9
  deps << 'db:load_config'
10
10
  end
11
11
  task environment: deps do
12
- ActiveRecord::Base.establish_connection ActiveRecord::Tasks::DatabaseTasks.current_config
12
+ ActiveRecord::Base.establish_connection ActiveRecord::Tasks::DatabaseTasks.env.to_sym
13
13
  end
14
14
 
15
15
  namespace :db do
@@ -31,6 +31,8 @@ namespace :db do
31
31
  end
32
32
  params = [name]
33
33
  params.concat options.split(' ') if options
34
+ # Rails assumes configure! has been called, which initializes @after_generate_callbacks
35
+ Rails::Generators.after_generate_callbacks # ensure the empty array is created
34
36
  #Rails::Generators.invoke "active_record:migration", params,
35
37
  Rails::Generators.invoke "active_record_migrations:migration", params,
36
38
  behavior: :invoke, destination_root: Rails.root
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordMigrations
2
- VERSION = '5.2.0.1'
2
+ VERSION = '6.1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0.1
4
+ version: 6.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 5.0.2
47
+ version: 6.1.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 5.0.2
54
+ version: 6.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activerecord
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 5.0.2
61
+ version: 6.1.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 5.0.2
68
+ version: 6.1.1
69
69
  description: ActiveRecord Stand-alone migrations
70
70
  email:
71
71
  - rr.rosas@gmail.com
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.7.6
106
+ rubygems_version: 3.2.3
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Use AR migrations from outside of a Rails project