aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-02-11 09:47:50 +0100
committerYves Senn <yves.senn@gmail.com>2015-02-11 09:47:50 +0100
commit9bdb083dba0778f47866fa440476b3141716de52 (patch)
treef9b57572bf4195917e99b528a9e42cba86e69dc2
parent714e6fc445d06663a356f66fcd8e2289a2564816 (diff)
parent4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec (diff)
downloadrails-9bdb083dba0778f47866fa440476b3141716de52.tar.gz
rails-9bdb083dba0778f47866fa440476b3141716de52.tar.bz2
rails-9bdb083dba0778f47866fa440476b3141716de52.zip
Merge pull request #18890 from kamipo/remove_cast_type
Remove `cast_type` in `ColumnDefinition`
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
index 7eaa89c9a7..8cd4b8e5b2 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -15,7 +15,7 @@ module ActiveRecord
# are typically created by methods in TableDefinition, and added to the
# +columns+ attribute of said TableDefinition object, in order to be used
# for generating a number of table creation or table changing SQL statements.
- class ColumnDefinition < Struct.new(:name, :type, :limit, :precision, :scale, :default, :null, :first, :after, :auto_increment, :primary_key, :sql_type, :cast_type) #:nodoc:
+ class ColumnDefinition < Struct.new(:name, :type, :limit, :precision, :scale, :default, :null, :first, :after, :auto_increment, :primary_key, :sql_type) #:nodoc:
def primary_key?
primary_key || type.to_sym == :primary_key