Add offline model and "new" form/controller

This commit is contained in:
sto
2025-10-29 17:20:38 +01:00
parent a8f1ffd920
commit 35ad7da355
10 changed files with 158 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
# == Schema Information
#
# Table name: offlines
#
# id :integer not null, primary key
# end_time :datetime
# start_time :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# contest_id :integer not null
#
# Indexes
#
# index_offlines_on_contest_id (contest_id)
#
# Foreign Keys
#
# contest_id (contest_id => contests.id)
#
FactoryBot.define do
factory :offline do
end
end

View File

@@ -0,0 +1,24 @@
# == Schema Information
#
# Table name: offlines
#
# id :integer not null, primary key
# end_time :datetime
# start_time :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# contest_id :integer not null
#
# Indexes
#
# index_offlines_on_contest_id (contest_id)
#
# Foreign Keys
#
# contest_id (contest_id => contests.id)
#
require 'rails_helper'
RSpec.describe Offline, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end