active_record_migrations 5.0.0.1.pre.optimistic → 5.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/active_record_migrations.gemspec +7 -6
- data/lib/active_record_migrations.rb +0 -4
- data/lib/active_record_migrations/version.rb +1 -1
- metadata +11 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47912ffbd2b1cd1519c1ff6d5a86313c373ab505
|
4
|
+
data.tar.gz: cc0f033e669b7de79ceb7d0ff12388bb44213b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a44c00a493baa65b49d03d557e9f5fad273a265c3f4c284d0a26046b3982167177f4c19a243d224791d20a4108add3be20ab5d39e2b58b35c9a37836999bcb
|
7
|
+
data.tar.gz: 1d92313a577082c99c19dcd826f49151c483daf4779e1a03d6436d58df91557a9919a2c0349194369ce9b9bcccf8e33b46b8ffea92168a7dd8207bdfdc5c5939
|
data/README.md
CHANGED
@@ -2,19 +2,11 @@
|
|
2
2
|
|
3
3
|
Allows you to use ActiveRecord migrations in non-Rails projects.
|
4
4
|
|
5
|
-
This branch is for the _optimistic_ version, assuming the internals of AR migrations we rely on
|
6
|
-
won't change until the next major version. However, we can't really promiss the related AR
|
7
|
-
migrations code won't change in minor or patch versions of AR. That's why we can't release this
|
8
|
-
branch as a final version.
|
9
|
-
|
10
|
-
But at least you should be able to try it with basically any AR version in case you have to deal
|
11
|
-
with conflicts.
|
12
|
-
|
13
5
|
## Installation
|
14
6
|
|
15
7
|
Add this line to your application's Gemfile (run `bundle init` if you don't have one):
|
16
8
|
|
17
|
-
gem 'active_record_migrations'
|
9
|
+
gem 'active_record_migrations'
|
18
10
|
gem 'sqlite3' # or 'pg', 'mysql2', ...
|
19
11
|
|
20
12
|
And then execute:
|
@@ -48,7 +40,7 @@ will be created under `db/migrate`. If you want to keep with the defaults, creat
|
|
48
40
|
```
|
49
41
|
|
50
42
|
If you prefer to specify your settings in plain Ruby, add this to your Rakefile,
|
51
|
-
before calling `ActiveRecordMigrations.
|
43
|
+
before calling `ActiveRecordMigrations.load_tasks`:
|
52
44
|
|
53
45
|
```ruby
|
54
46
|
ActiveRecordMigrations.configure do |c|
|
@@ -79,10 +71,18 @@ You can specify the environment by setting the `db` environment variable:
|
|
79
71
|
|
80
72
|
## Versioning
|
81
73
|
|
82
|
-
|
83
|
-
|
74
|
+
The version follows ActiveRecord versions plus a patch version from our own. For instance, if
|
75
|
+
AR version is 4.0.1, this gem will be versioned 4.0.1.x with x starting in 0.
|
76
|
+
|
77
|
+
## I can't find a release for the AR version we rely on
|
78
|
+
|
79
|
+
We have to use pessimistic versioning because we rely on internal details of AR migrations in
|
80
|
+
order to override the migrations path. So far the internal implementation since 4.0.0.0 hasn't
|
81
|
+
changed, so if you're interested on another version with optimistic versioning dependency in
|
82
|
+
order to have more flexibility you should check out the [optimistic](../../tree/optimistic) branch.
|
84
83
|
|
85
|
-
|
84
|
+
I've already tried to merge the required changes to AR itself a few times but after having my
|
85
|
+
pull requests ignored a few times without feedback I gave up.
|
86
86
|
|
87
87
|
## Contributing
|
88
88
|
|
@@ -20,14 +20,15 @@ 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.0"
|
24
|
+
# spec.add_dependency "activerecord", "~> 5.0.0"
|
23
25
|
# We rely on a kind of monkey patch for allowing us to override the migrations path.
|
24
|
-
#
|
26
|
+
# So it's better to fix on an specific version of AR and check if the override of
|
25
27
|
# ActiveRecord::Generators::MigrationGenerator#create_migration_file is correct
|
26
28
|
# before upgrading AR dependency. See ARM::Generators::MigrationGenerator impl.
|
27
|
-
#
|
28
|
-
#
|
29
|
-
|
30
|
-
spec.add_dependency "
|
31
|
-
spec.add_dependency "activerecord", ">= 4.0.0", "< 6.0"
|
29
|
+
#spec.add_dependency "railties", "5.0.0"
|
30
|
+
#spec.add_dependency "activerecord", "5.0.0"
|
31
|
+
spec.add_dependency "railties", "5.0.0"
|
32
|
+
spec.add_dependency "activerecord", "5.0.0"
|
32
33
|
end
|
33
34
|
|
@@ -5,10 +5,6 @@ require 'rails'
|
|
5
5
|
require 'rails/application'
|
6
6
|
require 'active_record_migrations/configurations'
|
7
7
|
|
8
|
-
# those requires are missing from AR but are required:
|
9
|
-
require 'zlib'
|
10
|
-
require 'digest'
|
11
|
-
|
12
8
|
module ActiveRecordMigrations
|
13
9
|
include ActiveRecord::Tasks
|
14
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.1
|
4
|
+
version: 5.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
@@ -42,42 +42,30 @@ dependencies:
|
|
42
42
|
name: railties
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 4.0.0
|
48
|
-
- - "<"
|
45
|
+
- - '='
|
49
46
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
47
|
+
version: 5.0.0
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
|
-
- -
|
52
|
+
- - '='
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '6.0'
|
54
|
+
version: 5.0.0
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: activerecord
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
|
-
- -
|
59
|
+
- - '='
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
- - "<"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '6.0'
|
61
|
+
version: 5.0.0
|
71
62
|
type: :runtime
|
72
63
|
prerelease: false
|
73
64
|
version_requirements: !ruby/object:Gem::Requirement
|
74
65
|
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 4.0.0
|
78
|
-
- - "<"
|
66
|
+
- - '='
|
79
67
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
68
|
+
version: 5.0.0
|
81
69
|
description: ActiveRecord Stand-alone migrations
|
82
70
|
email:
|
83
71
|
- rr.rosas@gmail.com
|
@@ -111,9 +99,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
99
|
version: '0'
|
112
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
101
|
requirements:
|
114
|
-
- - "
|
102
|
+
- - ">="
|
115
103
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
104
|
+
version: '0'
|
117
105
|
requirements: []
|
118
106
|
rubyforge_project:
|
119
107
|
rubygems_version: 2.5.1
|