scribe/tasks/db/seed/sample_data.cr

15 lines
369 B
Crystal
Raw Permalink Normal View History

2021-05-01 23:02:08 +02:00
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