Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Codeigniter: Can I use $this->db->trans_start() and trans_complete with in my controller function?

Converting ActiveRecord results to json in transaction script

Specify currently grabbed records within Model class method

When creating an object in Ruby on Rails, which method of saving do you prefer, and why?

What patterns to use to build layers for delphi win 32 application

Rails: is there a difference between 'references :foo' and 'integer :foo_id'?

How do I sort a table by the maximum value of associated records?

Setting default integer values in activerecord

How to fully reload an ActiveRecord to reset it's memoized values?

Is ActiveRecord::Batches::find_each thread safe?

Rails preview update associations without saving to database

Scope with "WHERE ... LIKE" on a related table

ActiveRecord::Base.connection.query_cache_enabled in sidekiq

ActiveRecord sum and pluck method return strange value

Explain COUNT query with ActiveRecord

Rails: Is it ok to call ActiveRecord Methods in the view Rails

uninitialized constant ActiveRecord::ConnectionAdapters::Mysql2Adapter::NATIVE_DATABASE_TYPES (NameError)

How to use joins inside includes in rails active record query?

ActiveRecord::StatementInvalid: Mysql2::Error: Cannot delete or update a parent row - Rails 4.2.6

activerecord as model, is this a good idea?