Created
January 17, 2014 15:52
-
-
Save wteuber/8475728 to your computer and use it in GitHub Desktop.
use MySQL "ENGINE=MEMORY" for rails app, thanks to http://stackoverflow.com/questions/1602494/rails-with-in-memory-database
This file contains 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
find ./db/migrate/* | xargs sed -i 's/create_table [^ ]*/&, :options => "ENGINE=MEMORY"/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to used
sed -i '' -e ...
in macos