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 CHANGED
@@ -1 +1 @@
1
- 0.1.3
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{migration_tools}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Morten Primdahl"]
@@ -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(:environment)
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Morten Primdahl