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