We're using Faker during this task, and it depends on English being available as a fallback for methods like the Lorem ipsum ones.
9 lines
292 B
Ruby
9 lines
292 B
Ruby
namespace :db do
|
|
desc "Resets the database and loads it from db/dev_seeds.rb"
|
|
task :dev_seed, [:print_log] => [:environment] do |t, args|
|
|
@avoid_log = args[:print_log] == "avoid_log"
|
|
I18n.enforce_available_locales = false
|
|
load(Rails.root.join("db", "dev_seeds.rb"))
|
|
end
|
|
end
|