Created
October 14, 2015 18:21
-
-
Save tenderlove/c213a5dd887eaa9ff7bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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