Sha256: 44f2883f9b68857d530c0edfe53652025f5981d23d5c092275c70e2ac25ffd6a

Contents?: true

Size: 351 Bytes

Versions: 39

Compression:

Stored size: 351 Bytes

Contents

module PandaCms
  class Redirect < ApplicationRecord
    belongs_to :origin_page, class_name: "PandaCms::Page", foreign_key: :origin_panda_cms_page_id
    belongs_to :destination_page, class_name: "PandaCms::Page", foreign_key: :destination_panda_cms_page_id

    validates :status_code, presence: true
    validates :visits, presence: true
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/models/panda_cms/redirect.rb
panda_cms-0.6.2 app/models/panda_cms/redirect.rb
panda_cms-0.6.1 app/models/panda_cms/redirect.rb
panda_cms-0.6.0 app/models/panda_cms/redirect.rb
panda_cms-0.5.10 app/models/panda_cms/redirect.rb
panda_cms-0.5.9 app/models/panda_cms/redirect.rb
panda_cms-0.5.8 app/models/panda_cms/redirect.rb
panda_cms-0.5.7 app/models/panda_cms/redirect.rb
panda_cms-0.5.6 app/models/panda_cms/redirect.rb
panda_cms-0.5.5 app/models/panda_cms/redirect.rb
panda_cms-0.5.4 app/models/panda_cms/redirect.rb
panda_cms-0.5.3 app/models/panda_cms/redirect.rb
panda_cms-0.5.2 app/models/panda_cms/redirect.rb
panda_cms-0.5.1 app/models/panda_cms/redirect.rb
panda_cms-0.5.0 app/models/panda_cms/redirect.rb
panda_cms-0.3.15 app/models/panda_cms/redirect.rb
panda_cms-0.3.14 app/models/panda_cms/redirect.rb
panda_cms-0.3.13 app/models/panda_cms/redirect.rb
panda_cms-0.3.12 app/models/panda_cms/redirect.rb
panda_cms-0.3.11 app/models/panda_cms/redirect.rb