revert

revert(*migration_classes) Instance Public methods Reverses the migration commands for the given block and the given migrations. The following migration will remove the table 'horses' and create the table 'apples' on the way up, and the reverse on the way down. class FixTLMigration < ActiveRecord::Migration def change revert do create_table(:horses) do |t| t.text :content t.datetime :remind_at end end create_table(:apples) do |t| t

clear!

clear!() Instance Public methods Clears out internal caches

supports_extensions?

supports_extensions?() Instance Public methods Does this adapter support database extensions? As of this writing only postgresql does.

test_destroy_all_within_inheritance

test_destroy_all_within_inheritance() Instance Public methods

render_to_body

render_to_body(options) Instance Public methods

config

config() Instance Public methods Reads and writes attributes from a configuration OrderedHash. require 'active_support/configurable' class User include ActiveSupport::Configurable end user = User.new user.config.allowed_access = true user.config.level = 1 user.config.allowed_access # => true user.config.level # => 1

test_crazy_object_calls_quote_string

test_crazy_object_calls_quote_string() Instance Public methods

new

new(name = self.class.name, version = nil) Class Public methods

validates_presence_of

validates_presence_of(*attr_names) Instance Public methods Validates that the specified attributes are not blank (as defined by Object#blank?), and, if the attribute is an association, that the associated object is not marked for destruction. Happens by default on save. class Person < ActiveRecord::Base has_one :face validates_presence_of :face end The face attribute must be in the object and it cannot be blank or marked for destruction. If you want to validate the presence

sequence_name

sequence_name() Instance Public methods