Class: ActiveRecord::ConnectionAdapters::MySQL::Column
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/mysql/column.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Column
#collation, #comment, #default, #default_function, #name, #null, #sql_type_metadata
Instance Method Summary collapse
Methods inherited from Column
#==, #bigint?, #encode_with, #has_default?, #hash, #human_name, #init_with, #initialize
Methods included from Deduplicable
Methods included from ActiveSupport::Concern
#append_features, #class_methods, extended, #included, #prepend_features, #prepended
Constructor Details
This class inherits a constructor from ActiveRecord::ConnectionAdapters::Column
Instance Method Details
#auto_increment? ⇒ Boolean
17 18 19 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/mysql/column.rb', line 17 def auto_increment? extra == "auto_increment" end |
#case_sensitive? ⇒ Boolean
13 14 15 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/mysql/column.rb', line 13 def case_sensitive? collation && !collation.end_with?("_ci") end |
#unsigned? ⇒ Boolean
9 10 11 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/mysql/column.rb', line 9 def unsigned? /\bunsigned(?: zerofill)?\z/.match?(sql_type) end |
#virtual? ⇒ Boolean
21 22 23 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/mysql/column.rb', line 21 def virtual? /\b(?:VIRTUAL|STORED|PERSISTENT)\b/.match?(extra) end |