Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'active_record/fixtures' namespace :db do namespace :migrate do namespace :defaults do task :set do raise "Unable to connect to database" and return unless ActiveRecord::Base::establish_connection puts "Setting Defaults, Use db:migrate:defaults:unset to unset the defaults" # Load Default Accounts puts "-- Installing Default User Accounts:" !! Fixtures.create_fixtures('test/fixtures/', :users) end task :unset do puts "Unsetting Defaults, Use db:migrate:defaults:set to set the defaults" end end end end
This paste will be private.
From the Design Piracy series on my blog: