mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-28 12:02:52 +02:00
54 lines
1.2 KiB
Ruby
54 lines
1.2 KiB
Ruby
# == Schema Information
|
|
#
|
|
# Table name: checks
|
|
#
|
|
# id :bigint(8) not null, primary key
|
|
# active :boolean default(TRUE), not null
|
|
# comment :string(255)
|
|
# domain :string(255) not null
|
|
# domain_created_at :datetime
|
|
# domain_expires_at :datetime
|
|
# domain_updated_at :datetime
|
|
# kind :integer not null
|
|
# last_run_at :datetime
|
|
# last_success_at :datetime
|
|
# vendor :string(255)
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# user_id :bigint(8)
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_checks_on_user_id (user_id)
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (user_id => users.id)
|
|
#
|
|
|
|
FactoryBot.define do
|
|
factory :check do
|
|
user
|
|
kind :domain
|
|
domain "domain.fr"
|
|
domain_created_at Time.new(2016, 4, 1, 12, 0, 0, "+02:00")
|
|
domain_updated_at Time.new(2017, 3, 1, 12, 0, 0, "+02:00")
|
|
domain_expires_at Time.new(2019, 4, 1, 12, 0, 0, "+02:00")
|
|
active true
|
|
vendor nil
|
|
comment nil
|
|
last_run_at nil
|
|
last_success_at nil
|
|
|
|
trait :domain do
|
|
kind :domain
|
|
end
|
|
|
|
trait :nil_dates do
|
|
domain_created_at nil
|
|
domain_updated_at nil
|
|
domain_expires_at nil
|
|
end
|
|
end
|
|
end
|