mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Commit stray fixture.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
bdf91d6748
commit
667d8ea2ea
1 changed files with 2 additions and 1 deletions
3
activerecord/test/fixtures/company.rb
vendored
3
activerecord/test/fixtures/company.rb
vendored
|
@ -22,6 +22,7 @@ class Firm < Company
|
|||
has_many :exclusively_dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all
|
||||
has_many :limited_clients, :class_name => "Client", :order => "id", :limit => 1
|
||||
has_many :clients_like_ms, :conditions => "name = 'Microsoft'", :class_name => "Client", :order => "id"
|
||||
has_many :clients_like_ms_with_hash_conditions, :conditions => { :name => 'Microsoft' }, :class_name => "Client", :order => "id"
|
||||
has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}'
|
||||
has_many :clients_using_counter_sql, :class_name => "Client",
|
||||
:finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}',
|
||||
|
@ -102,4 +103,4 @@ class Account < ActiveRecord::Base
|
|||
def validate
|
||||
errors.add_on_empty "credit_limit"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue