aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/db/schema.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-09-18 16:09:13 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-09-18 16:09:13 -0700
commit6256734e2d0bdd89f4b5d11da259d40afa0c95c7 (patch)
treeef9e6a9f4506a71a902e9cd92284f72754adc56c /guides/code/getting_started/db/schema.rb
parent096a57b7f340884175f724b55c7bbeda6318b356 (diff)
downloadrails-6256734e2d0bdd89f4b5d11da259d40afa0c95c7.tar.gz
rails-6256734e2d0bdd89f4b5d11da259d40afa0c95c7.tar.bz2
rails-6256734e2d0bdd89f4b5d11da259d40afa0c95c7.zip
ActiveRecord::Base#<=> has been removed. Primary keys may not be in order,
or even be numbers, so sorting by id doesn't make sense. Please use `sort_by` and specify the attribute you wish to sort with. For example, change: Post.all.to_a.sort to: Post.all.to_a.sort_by(&:id)
Diffstat (limited to 'guides/code/getting_started/db/schema.rb')
0 files changed, 0 insertions, 0 deletions