Sha256: 3c5bf4d93010ed7ac597483f18a08ca85ccd69b879647d90c4583daae714708a

Contents?: true

Size: 472 Bytes

Versions: 7

Compression:

Stored size: 472 Bytes

Contents

module Phcscriptcdn
  class Script::Version < ApplicationRecord

    # Clean URLS
    extend FriendlyId

    # Attach to Listing (None Nested)
    has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'

    #  Attach to URL (None Nested)
    has_many :urls, class_name: 'Phcscriptcdn::Script::Url'

    # Validation for Form Fields
    validates :scriptversion,
      presence: true

    # Clean URLS Slugs
    friendly_id :scriptversion, use: :slugged

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcscriptcdn-7.2.2 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-7.2.1 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-7.2.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-7.1.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-7.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-6.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-6.0.0b app/models/phcscriptcdn/script/version.rb