diff options
author | Kir Shatrov <shatrov@me.com> | 2015-09-07 21:20:15 +0300 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 10:12:13 -0600 |
commit | 9cc8c6f3730df3d94c81a55be9ee1b7b4ffd29f6 (patch) | |
tree | 68a48d84f3d2e1902d94316f781c4aee60a5f798 /activerecord/lib/active_record/connection_adapters | |
parent | b223d729d823dcf3c6915daa2bf48c028718c465 (diff) | |
download | rails-9cc8c6f3730df3d94c81a55be9ee1b7b4ffd29f6.tar.gz rails-9cc8c6f3730df3d94c81a55be9ee1b7b4ffd29f6.tar.bz2 rails-9cc8c6f3730df3d94c81a55be9ee1b7b4ffd29f6.zip |
Move ActiveRecord::Type to ActiveModel
The first step of bringing typecasting to ActiveModel
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 8222811e0c..5e31efec4a 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -5,13 +5,6 @@ module ActiveRecord module ConnectionAdapters # An abstract definition of a column in a table. class Column - FALSE_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF'].to_set - - module Format - ISO_DATE = /\A(\d{4})-(\d\d)-(\d\d)\z/ - ISO_DATETIME = /\A(\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)(\.\d+)?\z/ - end - attr_reader :name, :null, :sql_type_metadata, :default, :default_function, :collation delegate :precision, :scale, :limit, :type, :sql_type, to: :sql_type_metadata, allow_nil: true |