Class: ActiveSupport::Cache::DatabaseStore::Migration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/cache/database_store/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



7
8
9
10
11
12
13
14
# File 'lib/active_support/cache/database_store/migration.rb', line 7

def change
  create_table :activesupport_cache_entries, primary_key: 'key', id: :binary, limit: 255 do |t|
    t.binary :value, null: false
    t.string :version, index: true
    t.timestamp :created_at, null: false, index: true
    t.timestamp :expires_at, index: true
  end
end