blob: e36ca988701f1aec95a8b76954c66e74ba23b0a0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class RedirectRoute < ActiveRecord::Base
belongs_to :source, polymorphic: true
validates :source, presence: true
validates :path,
length: { within: 1..255 },
presence: true,
uniqueness: { case_sensitive: false }
end
|