Files
redux-scraper/db/migrate/20250301000002_create_domain_perceptual_hashes.rb
2025-03-03 17:05:58 +00:00

18 lines
513 B
Ruby

class CreateDomainPerceptualHashes < ActiveRecord::Migration[7.0]
def change
create_table :domain_perceptual_hashes do |t|
t.references :thumbnail,
null: false,
foreign_key: {
to_table: :domain_post_file_thumbnails,
},
index: true
t.string :algorithm, null: false, index: true
t.vector :hash_value
t.timestamps
end
# TODO - figure out right index type for hash_value
end
end