Sha256: b3055097fcaf5781d41c45a4b28fe241e606810405f1b3c0f437fb95747fec75

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

require "active_record"

module Otacrawler
  module Models
    class Comic < ActiveRecord::Base
      has_many :stories
      has_many :writing
      has_many :authors, through: :writing

      validates :url, presence: true, uniqueness: true
      validates :title, presence: true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
otacrawler-0.1.3 lib/otacrawler/models/comic.rb
otacrawler-0.1.2 lib/otacrawler/models/comic.rb
otacrawler-0.1.1 lib/otacrawler/models/comic.rb
otacrawler-0.1.0 lib/otacrawler/models/comic.rb