mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
change activerecord query conditions example to avoid 'type' as column name
'Type' is a reserved column for STI. Changed conditions example to avoid using that column name as an example. The example isn't STI-related (and mentioning STI here is needless clutter), so changing to avoid accidentally encouraging users to use 'type' as a column name for other purposes.
This commit is contained in:
parent
532e6d59b5
commit
e552fe16d4
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ module ActiveRecord #:nodoc:
|
|||
# When joining tables, nested hashes or keys written in the form 'table_name.column_name'
|
||||
# can be used to qualify the table name of a particular condition. For instance:
|
||||
#
|
||||
# Student.joins(:schools).where(:schools => { :type => 'public' })
|
||||
# Student.joins(:schools).where('schools.type' => 'public' )
|
||||
# Student.joins(:schools).where(:schools => { :category => 'public' })
|
||||
# Student.joins(:schools).where('schools.category' => 'public' )
|
||||
#
|
||||
# == Overwriting default accessors
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue