Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Making ActiveRecord / Rails use actual mysql TIMESTAMP columns

How to access params in the callback of a Rails model?

Faster way to find the last updated timestamp

Switching between multiple databases in Rails without breaking transactions

Rails: How to handle "Attribute was supposed to be a Array, but was a String" error?

Rails migration generates default timestamps (created_at, updated_at) as NULLABLE

How can I see the SQL ActiveRecord generates?

Ruby on Rails: question about validates_presence_of

Turn SQL query into ActiveRecord Relation

How to make associations work in built and unsaved objects?

Representing ecommerce products and variations cleanly in the database

Create association before record is saved

Fixing this Error: NameError (uninitialized constant ActiveRecord::ConnectionAdapters::Mysql2Adapter::Column)

Are you allowed to use a find_each query with an includes statement?

Rails has_many custom ActiveRecord Association

What's the Rails 3 replacement for ActiveRecord::Errors?

How to do has_many with a model that is in a namespace

Handling Complex WHERE clauses with a PHP Query Builder

Rails Arel selecting distinct columns

Empty array as default for active_record serialized attribute