Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

there is no reason to check for an already defined column

  • Loading branch information...
commit f84cf418f607c69d3e71fc6e7a161d224fc7fb86 1 parent d43edf6
Aaron Patterson tenderlove authored
2  activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.