aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/developer.rb
blob: 78f8f54db7149dca967b59652d5fce9918a2190f (plain) (blame)
1
2
3
4
5
6
class Developer < ActiveRecord::Base
  has_and_belongs_to_many :projects

  validates_inclusion_of :salary, :in => 50000..200000
  validates_length_of    :name, :within => 3..20
end