Skip to content

Instantly share code, notes, and snippets.

View bjgaynor's full-sized avatar

Brent Gaynor bjgaynor

  • University of New Mexico Health System
  • Albuquerque, NM
View GitHub Profile
@TGOlson
TGOlson / rake_tasks.rb
Last active December 26, 2015 12:09
Speed up the process
desc "load all files in app/models to irb"
task :console do
file_list = Dir[File.dirname(__FILE__) + "/app/models/*.rb"].map { |f| "-r #{f}" }
exec "irb #{file_list.join(' ')}"
end
desc "generate new migration file"
task :generate do