diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-11 11:13:52 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-11 11:13:52 +0900 |
commit | 4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec (patch) | |
tree | f244df8d949e26bdbeebbdb97d63c6127b361b3e | |
parent | 17d9996c91918df4c32b8ed7c67c2bbe715cfc9d (diff) | |
download | rails-4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec.tar.gz rails-4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec.tar.bz2 rails-4748d5a1ef6294ae0f4bf9b8b0bd7e7196f2f0ec.zip |
Remove `cast_type` in `ColumnDefinition`
This is no longer needed.
-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 |