Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

ActiveRecord serialize sending nil to custom serializer for present attribute

How can I get ActiveRecord model instances from a raw sql query?

Rails bug: accepts_nested_attributes_for is not updating my has_many association

rails attribute names camelcase issue

How to accomplish an update_attributes without actually saving the changes [duplicate]

ruby on rails parameter compare date with datetime?

Rails: Use sanitize_sql_for_conditions without model or db connection

Rails: fe_sendauth: no password supplied (PG::ConnectionBad) from Ruby, but ok in Rails

ActiveRecord includes over join Table very slow in Rails 4.1.2

How to use like, or_like and get_where together in Codeigniter 3

rails force execution of SQL query in where clause

Finding records between date range

Add readable field descriptions to ActiveRecord models

Rails 4: alternative for ActiveRecord 'all' as it is now deprecated

How to duplicate a record and its associated records in Ruby on Rails?

rails belongs_to optional but check exists if passed

How to change default validation error messages on belongs_to field

How to get typed results with ActiveRecord::Base.connection.exec_query

What is the difference between foreign_key and primary_key when defining an ActiveRecord association?