From ae3bd4ec58b662ded0940abcba09936f36ae8fcb Mon Sep 17 00:00:00 2001 From: Alexander Chebotarov Date: Tue, 5 Nov 2024 11:53:30 +0200 Subject: [PATCH] Fix the schema after rebase --- app/models/clickhouse/events_raw.rb | 1 + db/schema.rb | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/clickhouse/events_raw.rb b/app/models/clickhouse/events_raw.rb index 4673fbe9733..800507e5b9b 100644 --- a/app/models/clickhouse/events_raw.rb +++ b/app/models/clickhouse/events_raw.rb @@ -51,6 +51,7 @@ def organization # Table name: events_raw # # code :string not null +# ingested_at :datetime not null # precise_total_amount_cents :decimal(40, 15) # properties :string not null # timestamp :datetime not null diff --git a/db/schema.rb b/db/schema.rb index 03aa3cc1fd4..e9c29ab1d59 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_11_01_151559) do +ActiveRecord::Schema[7.1].define(version: 2024_10_31_123415) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -107,7 +107,7 @@ t.string "value", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.datetime "last_used_at" + t.datetime "expires_at" t.index ["organization_id"], name: "index_api_keys_on_organization_id" t.index ["value"], name: "index_api_keys_on_value", unique: true end @@ -965,7 +965,9 @@ t.boolean "custom_aggregation", default: false t.boolean "finalize_zero_amount_invoice", default: true, null: false t.boolean "clickhouse_events_store", default: false, null: false + t.string "hmac_key", null: false t.index ["api_key"], name: "index_organizations_on_api_key", unique: true + t.index ["hmac_key"], name: "index_organizations_on_hmac_key", unique: true t.check_constraint "invoice_grace_period >= 0", name: "check_organizations_on_invoice_grace_period" t.check_constraint "net_payment_term >= 0", name: "check_organizations_on_net_payment_term" end