1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 16:46:42 +01:00
projekteuler/app/models/translation.rb

9 lines
210 B
Ruby

class Translation < ActiveRecord::Base
belongs_to :problem, inverse_of: :translations
validates :title, :content, :problem_id, presence: true
validates :title, uniqueness: true
self.per_page = 50
end