mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
6 lines
178 B
Ruby
6 lines
178 B
Ruby
class Developer < ActiveRecord::Base
|
|
validates_inclusion_of :salary, :in => 50000..200000
|
|
validates_length_of :name, :within => 3..20
|
|
|
|
attr_accessor :name_confirmation
|
|
end
|