mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 11:40:44 -06:00
23 lines
447 B
Ruby
23 lines
447 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: cron_schedules
|
|
#
|
|
# id :bigint not null, primary key
|
|
# schedule :string not null
|
|
# service_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_cron_schedules_on_service_id (service_id)
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (service_id => services.id)
|
|
#
|
|
FactoryBot.define do
|
|
factory :cron_schedule do
|
|
service
|
|
schedule { "0 * * * *" } # Example: every hour
|
|
end
|
|
end
|