scribe/tasks/db/seed/required_data.cr

15 wiersze
371 B
Crystal

require "../../../spec/support/factories/**"
class Db::Seed::RequiredData < LuckyTask::Task
summary "Add database records required for the app to work"
def call
# Avram::Factory:
# UserFactory.create &.email("me@example.com")
# SaveOperation:
# SaveUser.create!(email: "me@example.com", name: "Jane")
puts "Done adding required data"
end
end