Skip to content

Commit

Permalink
Combine migrations for solid_cache_entries
Browse files Browse the repository at this point in the history
Combine the migrations for solid_cache_entries into a single file.
  • Loading branch information
djmb committed Aug 13, 2024
1 parent 8eaf08b commit ef837f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
8 changes: 6 additions & 2 deletions db/migrate/20230724121448_create_solid_cache_entries.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
class CreateSolidCacheEntries < ActiveRecord::Migration[7.0]
class CreateSolidCacheEntries < ActiveRecord::Migration[7.2]
def change
create_table :solid_cache_entries do |t|
t.binary :key, null: false, limit: 1024
t.binary :value, null: false, limit: 512.megabytes
t.datetime :created_at, null: false
t.integer :key_hash, null: false, limit: 8
t.integer :byte_size, null: false, limit: 4

t.index :key, unique: true
t.index :key_hash, unique: true
t.index [:key_hash, :byte_size]
t.index :byte_size
end
end
end

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit ef837f0

Please sign in to comment.