Sha256: 974c75584c4f3f71c4a309eae31425a97df29d9419826bf87c652514f7c12b1a

Contents?: true

Size: 240 Bytes

Versions: 1

Compression:

Stored size: 240 Bytes

Contents

class Example < ApplicationRecord
	enum col_enum: {
		zero: 0,
		one: 1,
		two: 2,
	}

	has_one :one
	has_one :two, through: :one

	has_many :fours
	has_many :threes, through: :fours

	has_and_belongs_to_many :fives, class_name: "Five"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ts_schema-0.1.1 test/dummy/app/models/example.rb