Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Rails 4 Migration | Add Table with Reference

atomic insert or increment in ActiveRecord/Rails

Why isn't ActiveRecord's autosave working on my association?

add a database column with Rails migration and populate it based on another column

Best way to conditionally chain scopes

Rails: Sort nils to the end of a scope?

Return nil object if after_initialize callback returns false

Rails ActiveRecord Includes with Inner Join

rails has_many :through has_many :through

Eager Load Depending on Type of Association in Ruby on Rails

Rails: Model instance method or helper method?

Rails Activerecord/Postgres time format

Which one is faster between map, collect, select and pluck?

Retrieve the nextval from a sequence using activerecord in Ruby on Rails 3.2.14 / Ruby 2.0.0 / PostgreSQL 9.2.4

Re-enable Rails 4 auto-EXPLAIN

Rails conditional validation in model

Validates with :if

Rails includes() LEFT OUTER JOIN with custom ON clause

Rails has_many with `through` option "loses" joins?

Scoping with two foreign keys