instance method
has_default?
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
has_default?()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 43
def has_default?
return false if sql_type =~ /blob/i || type == :text #mysql forbids defaults on blob and text columns
super
end
Defined in activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub