also_migrate 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ module AlsoMigrate
13
13
  options = args.extract_options!
14
14
  @also_migrate_config ||= []
15
15
  @also_migrate_config << {
16
+ :table_name => self.table_name,
16
17
  :tables => args.collect(&:to_s),
17
18
  :options => {
18
19
  :add => options[:add] ? options[:add] : [],
@@ -6,7 +6,7 @@ unless defined?(AlsoMigrate::Gems)
6
6
  class Gems
7
7
 
8
8
  VERSIONS = {
9
- :active_wrapper => '=0.3.4',
9
+ :active_wrapper => '=0.4.0',
10
10
  :rake => '=0.8.7',
11
11
  :rspec => '=1.3.1'
12
12
  }
@@ -37,6 +37,8 @@ module AlsoMigrate
37
37
  klass.also_migrate_config.each do |config|
38
38
  options = config[:options]
39
39
  tables = config[:tables]
40
+
41
+ next unless config[:table_name] == table_name
40
42
 
41
43
  # Don't change ignored columns
42
44
  options[:ignore].each do |column|
@@ -1,3 +1,3 @@
1
1
  module AlsoMigrate
2
- VERSION = "0.2.2" unless defined?(::AlsoMigrate::VERSION)
2
+ VERSION = "0.2.3" unless defined?(::AlsoMigrate::VERSION)
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Winton Welsh
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-13 00:00:00 -08:00
17
+ date: 2011-01-05 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency