migrant 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile +5 -0
- data/VERSION +1 -1
- data/changelog.md +7 -0
- data/lib/migrant/migration_generator.rb +3 -1
- data/migrant.gemspec +0 -1
- data/test/helper.rb +0 -4
- data/test/rails_app/config/database.yml +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
data/changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 1.5.0
|
2
|
+
|
3
|
+
[full changelog](http://github.com/pascalh1011/migrant/compare/v1.4.3...v1.5.0)
|
4
|
+
|
5
|
+
* Autoswitch compatibility between Rails 3.2 and Rails 4
|
6
|
+
* Add automated Travis testing for multiple Rails versions
|
7
|
+
|
1
8
|
### 1.4.3
|
2
9
|
|
3
10
|
[full changelog](http://github.com/pascalh1011/migrant/compare/v1.4.0...v1.4.3)
|
@@ -8,7 +8,9 @@ module Migrant
|
|
8
8
|
FileUtils.mkdir_p(Rails.root.join('db', 'migrate'))
|
9
9
|
@possible_irreversible_migrations = false
|
10
10
|
|
11
|
-
migrator = ActiveRecord::Migrator.open
|
11
|
+
migrator = (ActiveRecord::Migrator.public_methods.include?(:open))?
|
12
|
+
ActiveRecord::Migrator.open(migrations_path) :
|
13
|
+
ActiveRecord::Migrator.new(:up, migrations_path)
|
12
14
|
|
13
15
|
unless migrator.pending_migrations.blank?
|
14
16
|
log "You have some pending database migrations. You can either:\n1. Run them with rake db:migrate\n2. Delete them, in which case this task will probably recreate their actions (DON'T do this if they've been in SCM).", :error
|
data/migrant.gemspec
CHANGED
@@ -6,7 +6,6 @@ Gem::Specification.new do |s|
|
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Pascal Houliston"]
|
9
|
-
s.date = Date.today
|
10
9
|
s.description = %q{Easier schema management for Rails that complements your domain model.}
|
11
10
|
s.email = %q{101pascal@gmail.com}
|
12
11
|
s.extra_rdoc_files = [
|
data/test/helper.rb
CHANGED
@@ -52,10 +52,6 @@ class << STDIN
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
# Reset database
|
56
|
-
db_path = File.join(File.dirname(__FILE__), 'rails_app', 'db', 'test.sqlite3')
|
57
|
-
File.delete(db_path) if File.exists?(db_path)
|
58
|
-
|
59
55
|
# Remove migrations
|
60
56
|
Dir.glob(File.join(File.dirname(__FILE__), 'rails_app', 'db', 'migrate', '*')).each do |file|
|
61
57
|
File.delete(file)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thoughtbot-shoulda
|