mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
6 lines
375 B
Ruby
6 lines
375 B
Ruby
class AddTimeIndexingToEppLog < ActiveRecord::Migration
|
|
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
|