Skip to content

Commit

Permalink
add column and index for original_claim_hash, remove index for origin…
Browse files Browse the repository at this point in the history
…al_claim
  • Loading branch information
vasconsaurus committed Jan 24, 2025
1 parent 094b537 commit d5d7b9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 0 additions & 6 deletions db/migrate/20250122171640_add_original_claim_to_medias.rb

This file was deleted.

7 changes: 7 additions & 0 deletions db/migrate/20250124155814_add_original_claim_to_media.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddOriginalClaimToMedia < ActiveRecord::Migration[6.1]
def change
add_column :medias, :original_claim, :text, null: true
add_column :medias, :original_claim_hash, :string, null: true
add_index :medias, :original_claim_hash, unique: true
end
end
7 changes: 4 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2025_01_22_171640) do
ActiveRecord::Schema.define(version: 2025_01_24_155814) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -457,8 +457,9 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "uuid", default: 0, null: false
t.string "original_claim"
t.index ["original_claim"], name: "index_medias_on_original_claim", unique: true
t.text "original_claim"
t.string "original_claim_hash"
t.index ["original_claim_hash"], name: "index_medias_on_original_claim_hash", unique: true
t.index ["url"], name: "index_medias_on_url", unique: true
end

Expand Down

0 comments on commit d5d7b9d

Please sign in to comment.