Sha256: d62ffb1967902416e847fb98d229e9d9cfe05685158b02714336f12f3548a68b

Contents?: true

Size: 535 Bytes

Versions: 18

Compression:

Stored size: 535 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

18 entries across 18 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.9 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.8 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.7 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.6 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.1.0.rc1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.1.0.beta2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.1.0.beta1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.0.rc2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.0.rc1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.0.beta2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-5.0.0.beta1 app/models/alchemy/legacy_page_url.rb