diaspora/lib/tasks/db.rake
2010-06-30 11:57:11 -07:00

15 lines
354 B
Ruby

namespace :db do
desc 'Seed the current RAILS_ENV database from db/seeds.rb'
task :seed do
require 'db/seeds'
end
desc 'Delete the collections in the current RAILS_ENV database'
task :delete do
require 'config/environment'
# Specifiy what models to remove
Post.delete_all
Person.delete_all
Profile.delete_all
end
end