I set up db development and push it to Heroku.
rake db:reset rake db:seed heroku rake db:push
If you are using PostgreSQL by default, another option
heroku pg:reset heroku rake db:seed
I use the following in seed.rb file:
require 'pathname' RailsRoot = Pathname.new(RAILS_ROOT).expand_path print "Loading data..." fileData = File.read (RailsRoot + "db/data-file.csv")
source share