Class: ActiveRecord::ConnectionAdapters::Mysql2Adapter

Inherits:
Object
  • Object
show all
Includes:
MysqlAdapterForeignKeyMethods
Defined in:
lib/foreign_key_saver/foreign_key_saver_patches.rb

Class Method Summary collapse

Methods included from MysqlAdapterForeignKeyMethods

#foreign_key_constraints_on, #remove_foreign_key_constraint, #remove_foreign_key_constraints_referencing

Class Method Details

.columns_from_sql(column_list_sql) ⇒ Object



150
151
152
# File 'lib/foreign_key_saver/foreign_key_saver_patches.rb', line 150

def self.columns_from_sql(column_list_sql)
  MysqlAdapterForeignKeyMethods.columns_from_sql(column_list_sql)
end

.constraints_from_sql(create_table_sql) ⇒ Object



146
147
148
# File 'lib/foreign_key_saver/foreign_key_saver_patches.rb', line 146

def self.constraints_from_sql(create_table_sql)
  MysqlAdapterForeignKeyMethods.constraints_from_sql(create_table_sql)
end