diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-30 11:42:54 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-30 11:42:54 -0700 |
commit | b93b39eff6829ee05ffec1cc8c505f69cbb53fdc (patch) | |
tree | 5b37fc7c7d36cc6e0abc2530606ea3acad05362c /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | 155b1b7fe3a1d231fb98a6fb04a21f6eb190b98f (diff) | |
download | rails-b93b39eff6829ee05ffec1cc8c505f69cbb53fdc.tar.gz rails-b93b39eff6829ee05ffec1cc8c505f69cbb53fdc.tar.bz2 rails-b93b39eff6829ee05ffec1cc8c505f69cbb53fdc.zip |
Remove most type related predicates from `Column`
Remaining are `limit`, `precision`, `scale`, and `type` (the symbol
version). These will remain on the column, since they mirror the options
to the `column` method in the schema definition DSL
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index e74de60a83..a489141d1a 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -14,11 +14,7 @@ module ActiveRecord attr_reader :name, :cast_type, :null, :sql_type, :default, :default_function - delegate :type, :precision, :scale, :limit, :klass, :accessor, - :text?, :number?, :binary?, :changed?, - :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, - :type_cast_for_schema, - to: :cast_type + delegate :precision, :scale, :limit, :type, to: :cast_type # Instantiates a new column in the table. # |