Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created October 14, 2015 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/c213a5dd887eaa9ff7bc to your computer and use it in GitHub Desktop.
Save tenderlove/c213a5dd887eaa9ff7bc to your computer and use it in GitHub Desktop.
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index af307b5..4037e316 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -31,7 +31,7 @@ module ActiveRecord
# It will be mapped to one of the standard Rails SQL types in the <tt>type</tt> attribute.
# +null+ determines if this column allows +NULL+ values.
def initialize(name, default, cast_type, sql_type = nil, null = true)
- @name = name
+ @name = name.freeze
@cast_type = cast_type
@sql_type = sql_type
@null = null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment