Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Freezing associated objects

Rails 3 with composed_of model and validation

How to do without delete_if for Active Record?

Yii Framework How to Access Relational ActiveRecord by ID and get next?

php activerecord yii

Select objects by index of array in Rails 3

Rails app error - ActiveRecord::PendingMigrationError Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue

How to group and sum all currencies

Postgresql Rails: Select random record within a certain range?

How to make a query in Postgres to group records by month they were created? (:created_at datetime column)

Rails ActiveRecord find array of ids, but some are not found

Conditional validation based on column which may be nil

Rails ActiveRecord::RecordInvalid exception not raised in after_create of association

Create a child model in rails (belongs_to) and pre-setting the parent ID

Is it possible to DRY this migration up?

Ruby on Rails - Query Multiple Models

.hash in ActiveRecord

Writing worker using sidekiq for activerecord class

How to write a BETWEEN condition with Codeigniter's query builder methods?