Browse files

[dm-migrations] Only merge in valid options from the primitive

[#1069 state:resolved]
  • Loading branch information...
1 parent 25193c9 commit 8406d9cfff6b40948d168ee30396b558189adf25 @dkubb dkubb committed Oct 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-migrations/sql/table_creator.rb
View
2 lib/dm-migrations/sql/table_creator.rb
@@ -76,7 +76,7 @@ def build_type(type_class)
primitive = type_class.respond_to?(:primitive) ? type_class.primitive : type_class
options = @adapter.class.type_map[primitive].dup
- if type_class.respond_to?(:options)
+ if type_class.respond_to?(:options) && type_class.options.kind_of?(options.class)
options.update(type_class.options)
end

0 comments on commit 8406d9c

Please sign in to comment.