activerecord 339

  1. How do you write a migration to rename an ActiveRecord model and its table in Rails?
  2. Rails update_attributes without save?
  3. 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. What is causing this ActiveRecord::ReadOnlyRecord error?
  7. Do rails rake tasks provide access to ActiveRecord models?
  8. Rails find_or_create by more than one attribute?
  9. How to return an empty ActiveRecord relation?
  10. Validate uniqueness of multiple columns
  11. How to express a NOT IN query with ActiveRecord/Rails?
  12. How do I create a default value for attributes in Rails activerecord's model?
  13. Rails: select unique values from a column
  14. Determine if ActiveRecord Object is New
  15. Case-insensitive search in Rails model
  16. Rails 3 migrations: Adding reference column?
  17. ActiveRecord: size vs count
  18. Check if a table exists in Rails
  19. delete_all vs destroy_all?
  20. Override ActiveRecord attribute methods
  21. ActiveRecord OR query
  22. How to get last N records with activerecord?
  23. Count, size, length…too many choices in Ruby?
  24. Random record in ActiveRecord
  25. Rails 3: Get Random Record
  26. Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
  27. Using Rails serialize to save hash to database
  28. Can you get DB username, pw, database name in Rails?
  29. How can I avoid running ActiveRecord callbacks?
  30. Rails ActiveRecord date between
  31. Can you do greater than comparison on a date in a Rails 3 search?
  32. ActiveRecord, has_many :through, and Polymorphic Associations
  33. When to add what indexes in a table in Rails
  34. What does inverse_of do? What SQL does it generate?
  35. Rails: How to chain scope queries with OR instead of AND?
  36. How do you discover model attributes in Rails
  37. How to select where ID in Array Rails ActiveRecord without exception
  38. Why all the Active Record hate?
  39. How to do a LIKE query in Arel and Rails?
  40. belongs_to through associations
  41. What's the difference between belongs_to and has_one?
  42. Rails: Why does find(id) raise an exception in rails?
  43. Overriding id on create in ActiveRecord
  44. How can I see the SQL that will be generated by a given ActiveRecord query in Ruby on Rails
  45. When should one use a “has_many :through” relation in Rails?
  46. How to change default timezone for Active Record in Rails?
  47. How to list of all the tables defined for the database when using active record?
  48. Deprecation warning when using has_many :through :uniq in Rails 4
  49. How to implement has_many :through relationships with Mongoid and mongodb?
  50. validation custom message for rails 3