Permalink
Browse files

there is no reason to check for an already defined column

  • Loading branch information...
1 parent d43edf6 commit f84cf418f607c69d3e71fc6e7a161d224fc7fb86 @tenderlove tenderlove committed Mar 16, 2013
@@ -218,7 +218,7 @@ def column(name, type, options = {})
raise ArgumentError, "you can't redefine the primary key column '#{name}'. To define a custom primary key, pass { id: false } to create_table."
end
- @columns_hash[name] ||= new_column_definition(name, type, options)
+ @columns_hash[name] = new_column_definition(name, type, options)
self
end

0 comments on commit f84cf41

Please sign in to comment.