Add message model
Some checks failed
CI / scan_ruby (push) Failing after 14s
CI / scan_js (push) Successful in 11s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 27s

This commit is contained in:
sto
2025-05-11 19:40:30 +02:00
parent 378c3011ef
commit 2f23938e81
5 changed files with 96 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# == Schema Information
#
# Table name: messages
#
# id :integer not null, primary key
# text :string not null
# time_seconds :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# contest_id :integer not null
#
# Indexes
#
# index_messages_on_contest_id (contest_id)
#
# Foreign Keys
#
# contest_id (contest_id => contests.id)
#
FactoryBot.define do
factory :message do
time_seconds { 1 }
contest { nil }
text { "MyString" }
end
end

View File

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