May 2008
7 posts
Alarming events in the life of your Rails project #1: you’ve just written a Rake task labelled :armageddon. True story. Actually, some theologians posit that the event in question has already occurred, when (unrelatedly) I dropped down to SQL this morning and executed DELETE FROM users WHERE god IS NULL.
MacVim vs YAML
Recent builds of MacVim (23 to 26, at least) contain a broken YAML syntax file. You need to replace it with this one: yaml.vim.
It goes in $VIMRUNTIME/syntax, which normally resolves to /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax — but you can run :echo $VIMRUNTIME in MacVim to be sure.
Protecting the auto-migrating schema
If you’re using Err’s Auto Migrations, you’ll want to eradicate a default Rails task that clobbers your carefully-crafted schema file.
Add this to your Rakefile:
Rake.application.instance_variable_get(:@tasks).delete(
'db:schema:dump'
)
namespace(:db) {
namespace(:schema) {
task(:dump) { puts 'Schema dump disabled' }
}
}
Processing.js →
Labnotes ยป Git forking for fun and profit →