class

ActiveRecord::ConnectionAdapters::AbstractAdapter

v2.0.3 - Show latest stable - Superclass: Object

All the concrete database adapters follow the interface laid down in this class. You can use this interface directly by borrowing the database connection from the Base with Base.connection.

Most of the methods in the adapter are useful during migrations. Most notably, SchemaStatements#create_table, SchemaStatements#drop_table, SchemaStatements#add_index, SchemaStatements#remove_index, SchemaStatements#add_column, SchemaStatements#change_column and SchemaStatements#remove_column are very useful.

Included modules

  • DatabaseStatements
  • QueryCache
  • Quoting
  • SchemaStatements

Files

  • activerecord/lib/active_record/connection_adapters/abstract_adapter.rb