You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
Should you use schema.rb or the migrations to initialize the in-memory database? schema.rb is the default and generally faster. Reasons for using migrate: true could be to help make sure your migrations don't break due to changes in the code elsewhere (whether this is useful depends on your use-case), or to make some seeding data be available. If those reasons don't apply, keeping it at the default is probably faster.
TL;DR: Use the default unless there's a clear reason not to. You can always switch later.
This gem is really for testing, but you could activate it in your production or development environment. You would probably need to hook in to ActiveRecord::Base.establish_connection and call MemoryTestFix::SchemaLoader.init_schema there. Be aware that each connection will have its own set of data.