moargration 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/moargration.rb +5 -2
- data/moargration.gemspec +1 -1
- metadata +1 -1
data/lib/moargration.rb
CHANGED
@@ -30,9 +30,12 @@ module Moargration
|
|
30
30
|
class << self
|
31
31
|
alias :columns_without_moargration :columns
|
32
32
|
def columns
|
33
|
-
|
34
|
-
|
33
|
+
unless defined?(@cached_moargration_columns) && @cached_moargration_columns
|
34
|
+
@cached_moargration_columns = columns_without_moargration.reject do |column|
|
35
|
+
(Moargration.columns_to_ignore[table_name] || []).include?(column.name)
|
36
|
+
end
|
35
37
|
end
|
38
|
+
@cached_moargration_columns
|
36
39
|
end
|
37
40
|
end
|
38
41
|
end
|
data/moargration.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "moargration"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.4"
|
8
8
|
gem.authors = ["Pedro Belo"]
|
9
9
|
gem.email = ["pedro@heroku.com"]
|
10
10
|
gem.description = %q{Helping you migrate, MOAR.}
|