activerecord-compatible_legacy_migration 0.1.0.beta1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +5 -0
- data/README.md +20 -5
- data/gemfiles/activerecord_4_0.gemfile +5 -0
- data/gemfiles/activerecord_4_1.gemfile +5 -0
- data/gemfiles/{rails_4_2.gemfile → activerecord_4_2.gemfile} +0 -0
- data/gemfiles/{rails_5_0.gemfile → activerecord_5_0.gemfile} +0 -0
- data/lib/active_record/compatible_legacy_migration/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20db8f64d5f935c8eb0697e021166e45ed2f466
|
4
|
+
data.tar.gz: c84c6e3eec65de8482dccc81857cc72049333b2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca65d0b9678a7209026c647ddd2b6d681e1e727ccf7708834f55c21fa993ab1add7670b0edb0f34eddad115b2e73cb92824dd14b4fc579449bbea93ef516906
|
7
|
+
data.tar.gz: fc25ccc5697bda66010fa73f20c0380d42d2e22163aa6392ef01e0d0f43e4fbda97ca812f1d7e7ad8d1d37709e6a619653afe8bf40a311fbbcac98ccffbe6704
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
@@ -4,8 +4,10 @@ rvm:
|
|
4
4
|
- 2.3.1
|
5
5
|
- ruby-head
|
6
6
|
gemfile:
|
7
|
-
- gemfiles/
|
8
|
-
- gemfiles/
|
7
|
+
- gemfiles/activerecord_4_0.gemfile
|
8
|
+
- gemfiles/activerecord_4_1.gemfile
|
9
|
+
- gemfiles/activerecord_4_2.gemfile
|
10
|
+
- gemfiles/activerecord_5_0.gemfile
|
9
11
|
cache: bundler
|
10
12
|
sudo: false
|
11
13
|
before_install: gem install bundler -v 1.12.5
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# ActiveRecord::CompatibleLegacyMigration
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Compatible migration file between Rails 4.2 and 5+
|
6
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/activerecord-compatible_legacy_migration.svg)](https://badge.fury.io/rb/activerecord-compatible_legacy_migration)
|
7
6
|
[![Build Status](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration.svg?branch=master)](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration)
|
8
7
|
[![Code Climate](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
|
9
8
|
[![Coverage Status](https://coveralls.io/repos/github/sue445/activerecord-compatible_legacy_migration/badge.svg?branch=master)](https://coveralls.io/github/sue445/activerecord-compatible_legacy_migration?branch=master)
|
@@ -25,9 +24,25 @@ Or install it yourself as:
|
|
25
24
|
|
26
25
|
$ gem install activerecord-compatible_legacy_migration
|
27
26
|
|
27
|
+
## Usecase
|
28
|
+
* gem including migration file (e.g. mountable engine)
|
29
|
+
|
28
30
|
## Usage
|
31
|
+
Use `ActiveRecord::CompatibleLegacyMigration.migration_class` instead of `ActiveRecord::Migration`
|
32
|
+
|
33
|
+
### Example
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
class CreateUsers < ActiveRecord::CompatibleLegacyMigration.migration_class
|
37
|
+
def change
|
38
|
+
create_table :users do |t|
|
39
|
+
t.timestamps null: false
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
```
|
29
44
|
|
30
|
-
|
45
|
+
see [ActiveRecord::CompatibleLegacyMigration](lib/active_record/compatible_legacy_migration.rb)
|
31
46
|
|
32
47
|
## Development
|
33
48
|
|
@@ -37,7 +52,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
37
52
|
|
38
53
|
## Contributing
|
39
54
|
|
40
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sue445/activerecord-compatible_legacy_migration.
|
41
56
|
|
42
57
|
|
43
58
|
## License
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-compatible_legacy_migration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- ".gitignore"
|
134
134
|
- ".rspec"
|
135
135
|
- ".travis.yml"
|
136
|
+
- CHANGELOG.md
|
136
137
|
- Gemfile
|
137
138
|
- LICENSE.txt
|
138
139
|
- README.md
|
@@ -140,8 +141,10 @@ files:
|
|
140
141
|
- activerecord-compatible_legacy_migration.gemspec
|
141
142
|
- bin/console
|
142
143
|
- bin/setup
|
143
|
-
- gemfiles/
|
144
|
-
- gemfiles/
|
144
|
+
- gemfiles/activerecord_4_0.gemfile
|
145
|
+
- gemfiles/activerecord_4_1.gemfile
|
146
|
+
- gemfiles/activerecord_4_2.gemfile
|
147
|
+
- gemfiles/activerecord_5_0.gemfile
|
145
148
|
- lib/active_record/compatible_legacy_migration.rb
|
146
149
|
- lib/active_record/compatible_legacy_migration/version.rb
|
147
150
|
- lib/activerecord-compatible_legacy_migration.rb
|
@@ -160,9 +163,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
163
|
version: '0'
|
161
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
165
|
requirements:
|
163
|
-
- - "
|
166
|
+
- - ">="
|
164
167
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
168
|
+
version: '0'
|
166
169
|
requirements: []
|
167
170
|
rubyforge_project:
|
168
171
|
rubygems_version: 2.5.1
|