# lib/tasks/foo.rake

desc 'This is the foo task'
task :foo => :environment do
  Graphic.find_by_id(1)
end

# $ rake foo
# (in /path/to/app/)
# Illegal instruction (core dumped)