destroy!

destroy!() Instance Public methods Deletes the record in the database and freezes this instance to reflect that no changes should be made (since they can't be persisted). There's a series of callbacks associated with destroy!. If the before_destroy callback return false the action is cancelled and destroy! raises ActiveRecord::RecordNotDestroyed. See ActiveRecord::Callbacks for further details.

until

until(time = ::Time.current) Instance Public methods Reads best with argument: 10.minutes.until(time) ago

reflect_on_all_aggregations

reflect_on_all_aggregations() Instance Public methods Returns an array of AggregateReflection objects for all the aggregations in the class.

test_class_without_store_full_sti_class_returns_demodulized_name

test_class_without_store_full_sti_class_returns_demodulized_name() Instance Public methods

connected?

connected?(klass) Instance Public methods Returns true if a connection that's accessible to this class has already been opened.

primary_key

primary_key(table) Instance Public methods Returns just a table's primary key

set_state

set_state(state) Instance Public methods

distance_of_time_in_words_to_now

distance_of_time_in_words_to_now(from_time, include_seconds_or_options = {}) Instance Public methods Alias for: time_ago_in_words

test_different_namespace_subclass_should_load_correctly_with_store_full_sti_class_option

test_different_namespace_subclass_should_load_correctly_with_store_full_sti_class_option() Instance Public methods

wait

wait() Instance Public methods Wait notifications to be published.