activerecord-migrations 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aedf5f1fecf8cf4ab31c1b94e28f549f373a2ec8
|
4
|
+
data.tar.gz: 2f39bf268e9cd6c24dea0f3ca96d01eb539d33fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77796efe511842b401d4c702ee1cf92adc3bb45f0b461a67093fc6ffe51871c27735d7c15071f8d396c1fb8a2ec4acfebd5ef9ef061e6a87f6ec243d2e4e42da
|
7
|
+
data.tar.gz: e352d462055868a684125e7bccd3b175f1b7c5a0852254e8cc7785af265e1c46b7a5d48972e806f3f2723338ea473061147a270191f02526a3bd5855e1368688
|
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
require 'rails/generators'
|
3
|
+
|
4
|
+
if ActiveRecord::version >= Gem::Version.new("5.0.2")
|
5
|
+
# This is a monkey patch to work around the flakey design of ActiveRecord migrations.
|
6
|
+
require 'rails/generators/active_record/migration/migration_generator'
|
7
|
+
|
8
|
+
class ::ActiveRecord::Generators::MigrationGenerator
|
9
|
+
def db_migrate_path
|
10
|
+
ActiveRecord::Migrations.migrations_root
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -32,10 +32,10 @@ namespace :db do
|
|
32
32
|
options = []
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
require_relative 'generators'
|
36
36
|
|
37
37
|
parameters = [name] + options
|
38
|
-
|
38
|
+
|
39
39
|
files = Rails::Generators.invoke "active_record:migration", parameters, :destination_root => ActiveRecord::Migrations.root
|
40
40
|
end
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/active_record/migrations/tasks.rb
|
114
114
|
- lib/active_record/migrations/tasks/db.rb
|
115
115
|
- lib/active_record/migrations/tasks/db/fixtures.rb
|
116
|
+
- lib/active_record/migrations/tasks/db/generators.rb
|
116
117
|
- lib/active_record/migrations/tasks/db/migrations.rb
|
117
118
|
- lib/active_record/migrations/tasks/db/seed.rb
|
118
119
|
- lib/active_record/migrations/version.rb
|
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
137
|
version: '0'
|
137
138
|
requirements: []
|
138
139
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.6.10
|
140
141
|
signing_key:
|
141
142
|
specification_version: 4
|
142
143
|
summary: Provides a opinionated migration wrapper for ActiveRecord 5+
|