Sha256: 14eb3caed0ba9446e4f6d4eaa0871fbf9fffce44c64c50141267a22c1cde7708

Contents?: true

Size: 247 Bytes

Versions: 9

Compression:

Stored size: 247 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 < ActiveRecord::Base
  second_level_cache

  has_many :posts
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
second_level_cache-2.6.0 test/model/topic.rb
second_level_cache-2.5.3 test/model/topic.rb
second_level_cache-2.5.2 test/model/topic.rb
second_level_cache-2.5.0 test/model/topic.rb
second_level_cache-2.4.4 test/model/topic.rb
second_level_cache-2.4.3 test/model/topic.rb
second_level_cache-2.4.2 test/model/topic.rb
second_level_cache-2.4.1 test/model/topic.rb
second_level_cache-2.4.0 test/model/topic.rb