Skip to content

Instantly share code, notes, and snippets.

@wteuber
Created January 17, 2014 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wteuber/8475728 to your computer and use it in GitHub Desktop.
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
find ./db/migrate/* | xargs sed -i 's/create_table [^ ]*/&, :options => "ENGINE=MEMORY"/'
@dhilst
Copy link

dhilst commented Feb 1, 2019

I had to used sed -i '' -e ... in macos

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