Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Respect type method. #5337

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 338defb48ca29148c933aee6fc34ae902bc7ba7f 1 parent f801cd7
Jeremy Kemper jeremy authored
6 activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
View
@@ -21,16 +21,14 @@ def initialize(name, default, sql_type = nil, null = true)
@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.
Please sign in to comment.
Something went wrong with that request. Please try again.