Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

Validating an attribute to be an integer only

Custom validation for file size in rails before being uploaded

Running destroy_all on an array?

Including a model's virtual attributes when converting a record to JSON in Rails

How to truncate a join table in rails?