Class: ActiveRecord::ConnectionAdapters::Mysql2Adapter

Inherits:
AbstractMysqlAdapter show all
Defined in:
lib/activerecord-mysql-awesome/active_record/connection_adapters/mysql2_adapter.rb

Defined Under Namespace

Classes: Version

Constant Summary

Constants included from Mysql::Awesome

Mysql::Awesome::VERSION

Instance Method Summary collapse

Methods included from Mysql::Awesome

#column_spec_for_primary_key, #drop_table, #migration_keys, #options_for_column_spec, #prepare_column_options, #quote, #supports_datetime_with_precision?, #table_options, #type_to_sql, #update_table_definition

Instance Method Details

#versionObject



22
23
24
# File 'lib/activerecord-mysql-awesome/active_record/connection_adapters/mysql2_adapter.rb', line 22

def version
  @version ||= Version.new(@connection.server_info[:version].match(/^\d+\.\d+\.\d+/)[0])
end