Sha256: c59483703b993609e53085f3fdc7126d8ab7c996315fb4ab5ace25c18a5138a1

Contents?: true

Size: 246 Bytes

Versions: 6

Compression:

Stored size: 246 Bytes

Contents

# frozen_string_literal: true

ActiveRecord::Base.connection.create_table(:topics, force: true) do |t|
  t.string  :title
  t.text :body

  t.timestamps null: false
end

class Topic < ApplicationRecord
  second_level_cache

  has_many :posts
end

Version data entries

6 entries across 6 versions & 1 rubygems

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