Sha256: 94f0fbb9c084976f5041f55f35b0b369ff1294e58075ed296ae125ffa90857b5

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

class AbstractDoubloon < ActiveRecord::Base
  # This has functionality that might be shared by multiple classes.

  self.abstract_class = true
  belongs_to :pirate
end

class Doubloon < AbstractDoubloon
  # This uses an abstract class that defines attributes and associations.

  self.table_name = "doubloons"
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/doubloon.rb
ibm_db-5.4.1 test/models/doubloon.rb
ibm_db-5.4.0 test/models/doubloon.rb
ibm_db-5.3.2 test/models/doubloon.rb
ibm_db-5.3.1 test/models/doubloon.rb
ruby-on-quails-0.1.0 activerecord/test/models/doubloon.rb