Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails / ActiveRecord: detect if a column is an association or not

Rails ActiveRecord object not saving

Rails 4.1 Enums: enum.status = nil

How to query a model based on attribute of another model which belongs to the first model?

How to force a has_many association using a different column as foreign key

Force to reconnect MySQL in Rails

Rails AR validates_uniqueness_of against polymorphic relationship

insert record if not exists in sql, duplicate column name

Rails ActiveRecord Create or Find

Rails .where multiple values, one not nil

Can I get the table, column and type information from a model?

How to show validation errors from an associated model in Rails?

Querying for date range in rails

How do I find the user that has both a cat and a dog?

find_by inside a scope is firing 2 queries

Rails 4: Export database to YAML

Accepts Nested Attribute with a virtual attribute

ActiveRecord connection warning. (Database connections will not be closed automatically)

ruby activerecord sinatra

Ruby on Rails order by id (and version?)

ActiveRecord not saving any attributes, saving default values