exodus 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/exodus/migrations/migration.rb +1 -0
- data/lib/exodus/version.rb +1 -1
- data/tasks/exodus.rake +2 -0
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -58,6 +58,7 @@ module Exodus
|
|
58
58
|
# Using a list of migrations formats them and removes duplicates
|
59
59
|
# migrations: list of migrations => [[MyMigration, {:my_args => 'some_args'}]]
|
60
60
|
def load_custom(migrations)
|
61
|
+
migrations = migrations || []
|
61
62
|
migrations.map {|migration_str, args| format(migration_str, args) }.uniq
|
62
63
|
end
|
63
64
|
|
data/lib/exodus/version.rb
CHANGED
data/tasks/exodus.rake
CHANGED
@@ -60,6 +60,7 @@ namespace Exodus.configuration.rake_namespace + 'db' do
|
|
60
60
|
Exodus::Migration.load_custom(Exodus.migrations_info.migrate_custom)
|
61
61
|
end
|
62
62
|
|
63
|
+
puts "No migrations to run have been found" if migrations.empty?
|
63
64
|
Exodus::sort_and_run_migrations('up', migrations, step)
|
64
65
|
end
|
65
66
|
end
|
@@ -99,6 +100,7 @@ namespace Exodus.configuration.rake_namespace + 'db' do
|
|
99
100
|
Exodus::Migration.load_custom(Exodus.migrations_info.rollback_custom)
|
100
101
|
end
|
101
102
|
|
103
|
+
puts "No migrations to run have been found" if migrations.empty?
|
102
104
|
Exodus::sort_and_run_migrations('down', migrations, step)
|
103
105
|
end
|
104
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exodus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
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: 2014-
|
12
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongo_mapper
|