Type:
Class
Constants:
SIMPLE_INT : /\A\d+\z/

Active Record supports multiple database systems. AbstractAdapter and related classes form the abstraction layer which makes this possible. An AbstractAdapter represents a connection to a database, and provides an abstract interface for database-specific functionality such as establishing a connection, escaping values, building the right SQL fragments for ':offset' and ':limit' options, etc.

All the concrete database adapters follow the interface laid down in this class. ActiveRecord::Base.connection returns an AbstractAdapter object, which you can use.

Most of the methods in the adapter are useful during migrations. Most notably, the instance methods provided by SchemaStatement are very useful.

verify!

verify!(*ignored) Instance Public methods Checks whether the connection to the

2015-06-20 00:00:00
extensions

extensions() Instance Public methods A list of extensions, to be filled in by

2015-06-20 00:00:00
type_cast_config_to_boolean

type_cast_config_to_boolean(config) Class Public methods

2015-06-20 00:00:00
valid_type?

valid_type?(type) Instance Public methods

2015-06-20 00:00:00
current_savepoint_name

current_savepoint_name() Instance Public methods

2015-06-20 00:00:00
requires_reloading?

requires_reloading?() Instance Public methods Returns true if its required to

2015-06-20 00:00:00
unprepared_visitor

unprepared_visitor() Instance Public methods

2015-06-20 00:00:00
active?

active?() Instance Public methods Checks whether the connection to the database

2015-06-20 00:00:00
release_savepoint

release_savepoint(name = nil) Instance Public methods

2015-06-20 00:00:00