Skip to content

Commit

Permalink
Blegh
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Jan 3, 2024
1 parent 3bd6a6e commit 89277af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/pecorino.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89277af

Please sign in to comment.