scribe/tasks/db/seed/sample_data.cr
Edward Loveall fcf3eb14d0
Initial app
2021-05-01 17:03:38 -04:00

14 lines
369 B
Crystal

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