Sha256: 1d205c6f4115bd2390d9c1807199a7cc270fc2731e181ba21969e36953651ce8

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

ActiveRecord::Base.connection.create_table(:order_items, force: true, id: :uuid) do |t|
  t.text :body
  t.string :slug
  t.string :order_id
end

class OrderItem < ApplicationRecord
  second_level_cache
  belongs_to :order, touch: true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
second_level_cache-2.7.1 test/model/order_item.rb
second_level_cache-2.7.0 test/model/order_item.rb
second_level_cache-2.6.4 test/model/order_item.rb
second_level_cache-2.6.3 test/model/order_item.rb
second_level_cache-2.6.2 test/model/order_item.rb
second_level_cache-2.6.1 test/model/order_item.rb