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.6.7 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.6 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.5.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.5 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.0.6 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.6.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.5.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.3 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.1 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.4.0 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.3.2 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.2.4 app/models/alchemy/legacy_page_url.rb
alchemy_cms-4.3.1 app/models/alchemy/legacy_page_url.rb