tap/app/models/user.rb

4 lines
94 B
Ruby
Raw Normal View History

2014-11-06 14:46:59 +01:00
class User < ActiveRecord::Base
2014-11-06 16:25:27 +01:00
validates :name, presence: true, length: { maximum: 50 }
2014-11-06 14:46:59 +01:00
end