03 August 2015
namespace :db do

  desc "creates sample data"
  task :sample => :environment do
    load File.join(Rails.root, "db", "samples.rb")
  end

end


$ rake db:sample