Skip to content

Instantly share code, notes, and snippets.

@choonkeat
Created September 23, 2009 05:57
Show Gist options
  • Select an option

  • Save choonkeat/191755 to your computer and use it in GitHub Desktop.

Select an option

Save choonkeat/191755 to your computer and use it in GitHub Desktop.
# Create the "db/seeds" directory, and place the individual seeding scripts there instead.
Dir[File.join(File.dirname(__FILE__), "seeds", "*.rb")].sort.each {|path| require path }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment