migration_tools 0.1.3 → 0.1.4
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.
- data/VERSION +1 -1
- data/lib/migration_tools/tasks.rb +3 -0
- data/migration_tools.gemspec +1 -1
- data/test/test_migration_tools.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.4
|
|
@@ -61,6 +61,9 @@ module MigrationTools
|
|
|
61
61
|
migration.migrate(:up)
|
|
62
62
|
migrator.send(:record_version_state_after_migrating, migration.version)
|
|
63
63
|
end
|
|
64
|
+
|
|
65
|
+
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
|
|
66
|
+
Rake::Task["db:structure:dump"].invoke if ActiveRecord::Base.schema_format == :sql
|
|
64
67
|
end
|
|
65
68
|
end
|
|
66
69
|
end
|
data/migration_tools.gemspec
CHANGED
|
@@ -29,7 +29,8 @@ class TestMigrationTools < Test::Unit::TestCase
|
|
|
29
29
|
def setup
|
|
30
30
|
ENV['GROUP'] = nil
|
|
31
31
|
Rake::Task.clear
|
|
32
|
-
Rake::Task.define_task(
|
|
32
|
+
Rake::Task.define_task("environment")
|
|
33
|
+
Rake::Task.define_task("db:schema:dump")
|
|
33
34
|
@task = MigrationTools::Tasks.new
|
|
34
35
|
end
|
|
35
36
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: migration_tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.1.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Morten Primdahl
|