Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
[dm-migrations] Only merge in valid options from the primitive
Browse files Browse the repository at this point in the history
[#1069 state:resolved]
  • Loading branch information
dkubb committed Oct 7, 2009
1 parent 3177dad commit e0f5329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm-migrations/lib/dm-migrations/sql/table_creator.rb
Expand Up @@ -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

Expand Down

0 comments on commit e0f5329

Please sign in to comment.