You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just FYI, I was able to use this gem outside of Rails with standalone-migrations, although I had to jump through a few hoops to create my own Rake task and make my model classes available to it. In case you want to document it (or in case anyone is looking for it in the issues), here's the relevant part of my Rakefile:
$LOAD_PATH.unshift(File.expand_path('app/models',__dir__))Dir.glob(File.expand_path('app/models/*.rb',__dir__)).sort.each(&method(:require))require'seed_dump'namespace:dbdonamespace:seeddodesc"Dump records from the database into db/seeds.rb"task:dump=>:environmentdoSeedDump.dump_using_environment(ENV)endendend
The text was updated successfully, but these errors were encountered:
Just FYI, I was able to use this gem outside of Rails with standalone-migrations, although I had to jump through a few hoops to create my own Rake task and make my model classes available to it. In case you want to document it (or in case anyone is looking for it in the issues), here's the relevant part of my
Rakefile
:The text was updated successfully, but these errors were encountered: