Sha256: 69a173b689c14bcdbbae6c1fddda1657226a8fa3cbab5424a9253ad8729cebf3

Contents?: true

Size: 534 Bytes

Versions: 51

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

# == Schema Information
#
# Table name: alchemy_legacy_page_urls
#
#  id         :integer          not null, primary key
#  urlname    :string           not null
#  page_id    :integer          not null
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

class Alchemy::LegacyPageUrl < ActiveRecord::Base
  belongs_to :page,
    class_name: "Alchemy::Page",
    required: true

  validates :urlname,
    presence: true,
    format: {with: /\A[:.\w\-+_\/?&%;=#]*\z/}
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
alchemy_cms-7.3.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.8 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.1.13 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.0.16 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.3.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.3.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.3.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.7 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.3.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.3.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.6 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.1.12 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.0.15 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.1.11 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.1.10 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.2.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-7.1.9 app/models/alchemy/legacy_page_url.rb