Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Trouble with accepts_nested_attributes_for in Rails 5.0.0.beta3, -api option

How to pluck "as alias_name" from rails active record query

ActiveRecord find all parents that have associated children

Rails : belongs_to and has_many using non-standard ids

Multiple sum()s in ActiveRecord in Rails

Rails3: combine scope with OR

Rails 3 ActiveRecord validation based on user permissions

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