Created
August 18, 2020 19:22
-
-
Save pirj/48c738bfba8f26f1216850b6e6aa8a05 to your computer and use it in GitHub Desktop.
Create unlogged PostgreSQL tables - faster, but not crash-proof
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.to_prepare do | |
ActiveSupport.on_load(:active_record) do | |
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks https://prathamesh.tech/2020/08/10/creating-unlogged-tables-in-rails/