mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
6 lines
380 B
Ruby
6 lines
380 B
Ruby
class AddTimeIndexingToEppLog < ActiveRecord::Migration[6.0]
|
|
def change
|
|
ApiLog::EppLog.connection.execute( "CREATE INDEX CONCURRENTLY epp_logs_created_at ON epp_logs USING btree (extract(epoch from created_at));")
|
|
ApiLog::ReppLog.connection.execute("CREATE INDEX CONCURRENTLY repp_logs_created_at ON repp_logs USING btree (extract(epoch from created_at));")
|
|
end
|
|
end
|