diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-02-11 09:47:50 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-02-11 09:47:50 +0100 |
commit | 9bdb083dba0778f47866fa440476b3141716de52 (patch) | |
tree | f9b57572bf4195917e99b528a9e42cba86e69dc2 | |
parent | 714e6fc445d06663a356f66fcd8e2289a2564816 (diff) | |
parent | 4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec (diff) | |
download | rails-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.rb | 2 |
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 |