Skip to content

Commit 82f257c

Browse files
committed
Combine migrations for solid_cache_entries
Combine the migrations for solid_cache_entries into a single file.
1 parent af7e25b commit 82f257c

4 files changed

+6
-28
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
class CreateSolidCacheEntries < ActiveRecord::Migration[7.0]
1+
class CreateSolidCacheEntries < ActiveRecord::Migration[7.2]
22
def change
33
create_table :solid_cache_entries do |t|
44
t.binary :key, null: false, limit: 1024
55
t.binary :value, null: false, limit: 512.megabytes
66
t.datetime :created_at, null: false
7+
t.integer :key_hash, null: false, limit: 8
8+
t.integer :byte_size, null: false, limit: 4
79

8-
t.index :key, unique: true
10+
t.index :key_hash, unique: true
11+
t.index [:key_hash, :byte_size]
12+
t.index :byte_size
913
end
1014
end
1115
end

db/migrate/20240108155507_add_key_hash_and_byte_size_to_solid_cache_entries.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

db/migrate/20240110111600_add_key_hash_and_byte_size_indexes_and_null_constraints_to_solid_cache_entries.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

db/migrate/20240110111702_remove_key_index_from_solid_cache_entries.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)