mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
7 lines
143 B
Ruby
7 lines
143 B
Ruby
class Problem < ActiveRecord::Base
|
|
validates :title, :content, presence: true
|
|
validates :title, uniqueness: true
|
|
|
|
self.per_page = 50
|
|
end
|