Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Using Delegate With has_many In Rails?

Know what event triggered the after_commit of an ActiveRecord model

Validation on a has_many relationship in rails 3.2

FactoryGirl before(:create) callback not creating associations

How do you disable the query cache in rails 4.x?

locking rows on rails update to avoid collisions. (Postgres back end)

What is the purpose of ActiveRecord::Relation#bind?

Rails 5: Add record to join table without model (has_and_belongs_to_many)

How do I sort a table by the maximum value of associated records?

Rails preview update associations without saving to database

Scope with "WHERE ... LIKE" on a related table

Testing a databaseless Rails 5 application with rspec-rails

Rails change column type and update column values

How to select data for defined page and total count of records?

Rails Migration Change vs Up & Down methods

PG::ForeignKeyViolation: ERROR: update or delete on table "xxx" violates foreign key constraint

How to create index on LOWER("users"."username") in Rails (using postgres)

Getting all children of collection with has_many relationship

Using raw sql queries in Rails 3 application?

Can I rollback using change_column method in Rails 4 and above?