Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

newbie: get attribute value of an object gives error undefined method for #<ActiveRecord::Relation>

ActiveRecord::IrreversibleMigration exception when reverting migration

Skip password validation with a specific method in the user model

Shortcut for specifying an order and limit when accessing a has_many relation?

Trying to use multiple databases - getting ActiveRecord Connection Not Established

ruby activerecord

Rollback entire transaction within nested transaction

Associations not loaded in before_destroy callback

Using variable in ActiveRecord where condition

Rails: Allow only one record of a rails model to have a boolean property true?

ActiveRecord Validations for Models with has_many, belongs_to associations and STI

Associating Two Models in Rails (user and profile)

Pluck unique values from an ActiveRecord has_many association

Batch Looping A Model With Ruby

Rails - Strange time_select buggy behavior

ActiveRecord transaction is not rolling back whole transaction

Make db column optional or not required so I can create record

ActiveRecord column does not exist

NoMethodError: undefined method `needs_migration?' for ActiveRecord::Migrator:Class