activerecord 483

  1. How do you write a migration to rename an ActiveRecord model and its table in Rails?
  2. Rails update_attributes without save?
  3. Ruby on Rails generates model field:type - what are the options for field:type?
  4. How do you delete an ActiveRecord object?
  5. Float vs Decimal in ActiveRecord
  6. Do rails rake tasks provide access to ActiveRecord models?
  7. What is causing this ActiveRecord::ReadOnlyRecord error?
  8. How to return an empty ActiveRecord relation?
  9. Rails find_or_create by more than one attribute?
  10. Rails: select unique values from a column
  11. Validate uniqueness of multiple columns
  12. Determine if ActiveRecord Object is New
  13. How to express a NOT IN query with ActiveRecord/Rails?
  14. Case-insensitive search in Rails model
  15. How do I create a default value for attributes in Rails activerecord's model?
  16. ActiveRecord: size vs count
  17. Rails 3 migrations: Adding reference column?
  18. delete_all vs destroy_all?
  19. ActiveRecord OR query
  20. Check if a table exists in Rails
  21. Override ActiveRecord attribute methods
  22. How to get last N records with activerecord?
  23. Random record in ActiveRecord
  24. Count, size, length…too many choices in Ruby?
  25. Rails 3: Get Random Record
  26. Rails ActiveRecord date between
  27. Can you get DB username, pw, database name in Rails?
  28. Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
  29. How can I avoid running ActiveRecord callbacks?
  30. Using Rails serialize to save hash to database
  31. Can you do greater than comparison on a date in a Rails 3 search?
  32. When to add what indexes in a table in Rails
  33. Rails: How to chain scope queries with OR instead of AND?
  34. What does inverse_of do? What SQL does it generate?
  35. ActiveRecord, has_many :through, and Polymorphic Associations
  36. How do you discover model attributes in Rails
  37. belongs_to through associations
  38. How to select where ID in Array Rails ActiveRecord without exception
  39. What's the difference between belongs_to and has_one?
  40. How to do a LIKE query in Arel and Rails?
  41. How to change default timezone for Active Record in Rails?
  42. Why all the Active Record hate?


  43. Overriding id on create in ActiveRecord
  44. Rails 4 LIKE query - ActiveRecord adds quotes
  45. Rails: Why does find(id) raise an exception in rails?
  46. How to list of all the tables defined for the database when using active record?
  47. When should one use a “has_many :through” relation in Rails?
  48. How can I see the SQL that will be generated by a given ActiveRecord query in Ruby on Rails
  49. Deprecation warning when using has_many :through :uniq in Rails 4
  50. How to implement has_many :through relationships with Mongoid and mongodb?