Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

ActiveRecord - Get the last n records and delete them in one command?

ruby rails-activerecord

Default values for models in rails

Heroku + Sidekiq: ActiveRecord::StatementInvalid: PG::UnableToSend: SSL SYSCALL error: EOF detected

My app keeps creating database connections, how do I trace the reason?

Delete duplicate records based on multiple columns

Safely pass a dynamic column name into an ActiveRecord query with a Postgres cast?

Postgresql and ActiveRecord where: Regex matching

Adding unique: true for add_column and add_index in Active Record

Rails raw query for csv format, to be returned via controller

Ruby on Rails Active Record return value when create fails?

Ruby-on-Rails: Selecting distinct values from the model

Disable SQL Cache temporary in Rails?

Clean way to find ActiveRecord objects by id in the order specified

DEPRECATION WARNING: Dangerous query method: Random Record in ActiveRecord >= 5.2

How to save a model without running callbacks in Rails

Iterating through every record in a database - Ruby on Rails / ActiveRecord

How to test that a certain function uses a transaction in Rails and rspec 2

How do I add migration with multiple references to the same model in one table? Ruby/Rails

Rails first_or_create ActiveRecord method

after_create with multiple methods?