diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 6 |
1 files changed, 2 insertions, 4 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 d088e2ca26..3398bc68cd 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -21,16 +21,14 @@ module ActiveRecord @default = type_cast(default) @primary = nil - @text = [:string, :text].include? @type - @number = [:float, :integer].include? @type end def text? - @text + [:string, :text].include? type end def number? - @number + [:float, :integer].include? type end # Returns the Ruby class that corresponds to the abstract data type. |