Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

accept_nested_attributes_for :allow_destroy, :_destroy not working

Delete all records from all tables in database using seeds.rb

Include Active Storage attachments in Active Record query

How to execute direct SQL code on a different database in Rails

Alternative method for proxy_owner in ActiveRecord

Rails migration gives error when trying to also create a record in the self.up

finder_sql does not parse string with Rails

How can I find records from today, yesterday and so on with Ruby on Rails?

Compare each value of two ActiveRecords returning a boolean variable

ActiveRecord, which comes first?

how to add index conditionally

ActiveRecord and sorting on association

When are Active Record objects in has_many relationships saved?

How to convert postgres column type from string to float

Many-to-many self join in rails?

concat two fields activerecord

ActiveModel::MassAssignmentSecurity::Error: Can't mass-assign protected attributes:

Rails 3. Query for not true

How to process a large ActiveRecord result set in groups

Bypass readonly? when saving ActiveRecord