Skip to content

Instantly share code, notes, and snippets.

@pirj
Created August 18, 2020 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirj/48c738bfba8f26f1216850b6e6aa8a05 to your computer and use it in GitHub Desktop.
Save pirj/48c738bfba8f26f1216850b6e6aa8a05 to your computer and use it in GitHub Desktop.
Create unlogged PostgreSQL tables - faster, but not crash-proof
config.to_prepare do
ActiveSupport.on_load(:active_record) do
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables = true
end
end
@pirj
Copy link
Author

pirj commented Aug 18, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment