From 89277af35138baffb73f7cda10ecd6d59f91a736 Mon Sep 17 00:00:00 2001 From: Julik Tarkhanov Date: Wed, 3 Jan 2024 17:32:09 +0000 Subject: [PATCH] Blegh --- lib/pecorino.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/pecorino.rb b/lib/pecorino.rb index 2ad510b..80aa656 100644 --- a/lib/pecorino.rb +++ b/lib/pecorino.rb @@ -38,11 +38,7 @@ def self.create_tables(active_record_schema) active_record_schema.create_table :pecorino_leaky_buckets, id: :uuid do |t| t.string :key, null: false t.float :level, null: false - if active_record_schema.connection.adapter_name =~ /sqlite/ - t.text :last_touched_at, null: false - else - t.datetime :last_touched_at, null: false - end + t.datetime :last_touched_at, null: false t.datetime :may_be_deleted_after, null: false end active_record_schema.add_index :pecorino_leaky_buckets, [:key], unique: true