Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails find_by_sql - Use "?" literally rather than as bind variable?

update or delete on table "x" violates foreign key constraint "fk_rails_5a7b40847a" on table "x" [duplicate]

How to prevent nested create failing with scoped has_many in ActiveRecord?

What are the brackets [5.1] after ActiveRecord Migration and how does it work? [duplicate]

Changing table name at query run time in a Rails application

Do you know how to implement transactions in Castle ActiveRecord?

activerecord castle

Refactoring from ActiveRecord to DataMapper

Activerecord association question: getting has_many :through to work

Best practice for limiting the number of associations within a has_many relationship?

Rails: has_many :through or has_many_and_belongs_to?

Preload Model Associations On Find

Can ActiveResource models integrate with ActiveRecord models?

Eager loading last subordinate record

ruby/rails NoMethodError? when using custom validation method

validates_presence_of in a module

Changing ActiveRecord attribute value in before_save hook

Rails find all with association

Complex queries using Rails query language

ruby on rails does update_attributes protect against sql injection?

In Rails, how to get the actual Query when an ActiveRecord query executes