Sha256: 3495d679fe6df1d9767191367b7d8718f2f4c720cb0723bfb3d6e01347e82385

Contents?: true

Size: 535 Bytes

Versions: 39

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

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-4.2.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.3.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.2.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.1.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.1.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.2.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.2.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.2.0.rc1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.1.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.1.0.rc1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.1.0.beta app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.0.rc2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.0.rc1 app/models/alchemy/legacy_page_url.rb