diff options
Diffstat (limited to 'activerecord/lib/active_record/properties.rb')
-rw-r--r-- | activerecord/lib/active_record/properties.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/activerecord/lib/active_record/properties.rb b/activerecord/lib/active_record/properties.rb index 39c39ad9ff..a25c1cec58 100644 --- a/activerecord/lib/active_record/properties.rb +++ b/activerecord/lib/active_record/properties.rb @@ -1,5 +1,5 @@ module ActiveRecord - module Properties + module Properties # :nodoc: extend ActiveSupport::Concern Type = ConnectionAdapters::Type @@ -64,19 +64,7 @@ module ActiveRecord # Returns an array of column objects for the table associated with this class. def columns - @columns ||= add_user_provided_columns(connection.schema_cache.columns(table_name)).each do |column| - if Type::DecimalWithoutScale === column.cast_type - ActiveSupport::Deprecation.warn <<-MESSAGE.strip_heredoc - Decimal columns with 0 scale being automatically treated as integers - is deprecated, and will be removed in a future version of Rails. If - you'd like to keep this behavior, add - - property :#{column.name}, Type::Integer.new - - to your #{name} model. - MESSAGE - end - end + @columns ||= add_user_provided_columns(connection.schema_cache.columns(table_name)) end # Returns a hash of column objects for the table associated with this class. |