Regards,
Markus
--
You received this message because you are subscribed to the Google Groups "DataMapper" group.
To post to this group, send email to datam...@googlegroups.com.
To unsubscribe from this group, send email to datamapper+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
Hack: Run it on a RAMdisk or equivalent. I recommend tmpfs on Linux.
While true, it's also not as bad as you'd think. If you're running a modern
Linux, it's as simple as:
sudo mount tmpfs /wherever/i/want/a/ramdisk
...and done! You could easily put that in a script.
I have a tmpfs mounted somewhere convenient all the time, because I find it
generally useful.
> Or, what is worse, configurable ones (breaking our
> "don't make me think" test rule).
Symlinks.
> Hacking sequel seems a lot less
> work.
The above was a one-liner.
Now, if you're on Windows or OS X, I don't know how you'd do that. It also may
violate other rules, like "Don't make me run things as root". I just don't see
it being harder than hacking sequel, certainly not if you're on a Linux.
> And it might pay off, as truncating all databases is far more
> performatic than automigrate! (for clearing up tests).
Have you run automigrate on anything not disk-backed?
By all means, don't let me stop you from doing this a cleaner way, if you can.
I just like the one-liner, dirt-simple, generic solution.