From f5eb73fe90f1daa2f604e950164d671398b75873 Mon Sep 17 00:00:00 2001 From: Ryo Takaishi Date: Wed, 30 Jul 2025 19:55:00 +0900 Subject: [PATCH] chore: remove annotate (annotate doesn't work well for rails 8) --- Gemfile | 1 - Gemfile.lock | 4 -- app/models/admin_profile.rb | 25 -------- app/models/announcement.rb | 19 ------ app/models/chat_message.rb | 36 ----------- app/models/check_in.rb | 13 ---- app/models/check_in_conference.rb | 22 ------- app/models/check_in_talk.rb | 22 ------- app/models/conference.rb | 34 ----------- app/models/conference_day.rb | 18 ------ app/models/form_item.rb | 12 ---- app/models/form_value.rb | 21 ------- app/models/intermission.rb | 42 ------------- app/models/keynote_session.rb | 42 ------------- app/models/link.rb | 21 ------- app/models/media_live_channel.rb | 22 ------- app/models/media_live_input.rb | 21 ------- app/models/media_live_input_security_group.rb | 18 ------ app/models/media_package_channel.rb | 18 ------ app/models/media_package_harvest_job.rb | 26 -------- app/models/media_package_origin_endpoint.rb | 20 ------- app/models/media_package_parameter.rb | 21 ------- app/models/media_package_v2_channel.rb | 20 ------- app/models/media_package_v2_channel_group.rb | 17 ------ .../media_package_v2_origin_endpoint.rb | 19 ------ app/models/profile.rb | 38 ------------ app/models/proposal.rb | 12 ---- app/models/proposal_item.rb | 20 ------- app/models/proposal_item_config.rb | 25 -------- app/models/proposal_item_config_check_box.rb | 25 -------- .../proposal_item_config_radio_button.rb | 25 -------- app/models/public_profile.rb | 20 ------- app/models/registered_talk.rb | 11 ---- app/models/room.rb | 20 ------- app/models/session.rb | 42 ------------- app/models/speaker.rb | 26 -------- app/models/speaker_announcement.rb | 22 ------- app/models/speaker_announcement_middle.rb | 21 ------- app/models/speaker_invitation.rb | 23 -------- app/models/speaker_invitation_accept.rb | 27 --------- app/models/sponsor.rb | 22 ------- app/models/sponsor_attachment.rb | 25 -------- app/models/sponsor_attachment_logo_image.rb | 25 -------- app/models/sponsor_contact.rb | 23 -------- app/models/sponsor_contact_invite.rb | 22 ------- app/models/sponsor_contact_invite_accept.rb | 27 --------- app/models/sponsor_session.rb | 42 ------------- app/models/sponsor_speaker_invite.rb | 24 -------- app/models/sponsor_speaker_invite_accept.rb | 31 ---------- app/models/sponsor_type.rb | 21 ------- app/models/sponsors_sponsor_type.rb | 11 ---- app/models/stamp_rally_check_in.rb | 19 ------ app/models/stamp_rally_check_point.rb | 21 ------- app/models/stamp_rally_check_point_booth.rb | 21 ------- app/models/stamp_rally_check_point_finish.rb | 21 ------- app/models/stamp_rally_configure.rb | 16 ----- app/models/stats_of_registrant.rb | 17 ------ app/models/streaming.rb | 24 -------- app/models/talk.rb | 43 -------------- app/models/talk/type.rb | 8 --- app/models/talk_category.rb | 15 ----- app/models/talk_difficulty.rb | 15 ----- app/models/talk_time.rb | 19 ------ app/models/talks_speaker.rb | 15 ----- app/models/track.rb | 19 ------ app/models/video.rb | 15 ----- app/models/video_registration.rb | 21 ------- app/models/viewer_count.rb | 20 ------- lib/tasks/auto_annotate_models.rake | 59 ------------------- spec/factories/admin_profiles.rb | 24 -------- spec/factories/announcements.rb | 18 ------ spec/factories/chat_messages.rb | 35 ----------- spec/factories/check_ins.rb | 13 ---- spec/factories/conference_days.rb | 18 ------ spec/factories/conferences.rb | 34 ----------- spec/factories/form_items.rb | 12 ---- spec/factories/form_values.rb | 21 ------- spec/factories/links.rb | 21 ------- spec/factories/media_live_channels.rb | 21 ------- .../media_live_input_security_groups.rb | 18 ------ spec/factories/media_live_inputs.rb | 21 ------- spec/factories/media_package_channels.rb | 17 ------ spec/factories/media_package_harvest_jobs.rb | 25 -------- .../media_package_origin_endpoints.rb | 19 ------ spec/factories/media_package_parameters.rb | 21 ------- .../media_package_v2_channel_groups.rb | 18 ------ spec/factories/media_package_v2_channels.rb | 20 ------- .../media_package_v2_origin_endpoints.rb | 20 ------- spec/factories/profiles.rb | 38 ------------ spec/factories/proposal_item_configs.rb | 25 -------- spec/factories/proposal_items.rb | 20 ------- spec/factories/proposals.rb | 12 ---- spec/factories/public_profiles.rb | 20 ------- spec/factories/registered_talks.rb | 11 ---- spec/factories/rooms.rb | 20 ------- .../factories/speaker_announcement_middles.rb | 20 ------- spec/factories/speaker_announcements.rb | 22 ------- spec/factories/speaker_invitation_accepts.rb | 27 --------- spec/factories/speaker_invitations.rb | 23 -------- spec/factories/speakers.rb | 26 -------- spec/factories/sponsor_attachments.rb | 25 -------- .../sponsor_contact_invite_accepts.rb | 27 --------- spec/factories/sponsor_contact_invites.rb | 22 ------- spec/factories/sponsor_contacts.rb | 23 -------- .../sponsor_speaker_invite_accepts.rb | 31 ---------- spec/factories/sponsor_speaker_invites.rb | 24 -------- spec/factories/sponsor_types.rb | 21 ------- spec/factories/sponsors.rb | 22 ------- spec/factories/sponsors_sponsor_types.rb | 11 ---- spec/factories/stamp_rally_check_ins.rb | 20 ------- spec/factories/stats_of_registrants.rb | 16 ----- spec/factories/streamings.rb | 24 -------- spec/factories/talk_categories.rb | 15 ----- spec/factories/talk_difficulties.rb | 15 ----- spec/factories/talk_times.rb | 19 ------ spec/factories/talk_types.rb | 8 --- spec/factories/talks.rb | 43 -------------- spec/factories/talks_speakers.rb | 14 ----- spec/factories/tracks.rb | 19 ------ spec/factories/video_registrations.rb | 21 ------- spec/factories/videos.rb | 15 ----- spec/factories/viewer_counts.rb | 20 ------- spec/models/chat_message_spec.rb | 36 ----------- spec/models/conference_spec.rb | 34 ----------- spec/models/form_item_spec.rb | 11 ---- spec/models/form_value_spec.rb | 21 ------- spec/models/profile_spec.rb | 38 ------------ spec/models/registered_talk_spec.rb | 11 ---- spec/models/speaker_announcement_spec.rb | 21 ------- spec/models/speaker_spec.rb | 26 -------- spec/models/talk_spec.rb | 43 -------------- spec/models/viewer_count_spec.rb | 20 ------- 132 files changed, 2928 deletions(-) delete mode 100644 lib/tasks/auto_annotate_models.rake diff --git a/Gemfile b/Gemfile index 9ca4b18f5..6b3f39fc8 100644 --- a/Gemfile +++ b/Gemfile @@ -42,7 +42,6 @@ group :development, :test do gem 'rubocop', '~> 1.56.0' gem 'rubocop-rails' gem 'rubocop-rspec' - gem 'annotate', require: false end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index b65bf789e..258c07d7e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,9 +81,6 @@ GEM activesupport (>= 6.1) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) - annotate (3.2.0) - activerecord (>= 3.2, < 8.0) - rake (>= 10.4, < 14.0) ast (2.4.3) awesome_nested_set (3.8.0) activerecord (>= 4.0.0, < 8.1) @@ -791,7 +788,6 @@ DEPENDENCIES active_hash activerecord-nulldb-adapter acts_as_list - annotate awesome_nested_set aws-actionmailer-ses (~> 1.0) aws-activejob-sqs diff --git a/app/models/admin_profile.rb b/app/models/admin_profile.rb index a8a63320f..86f34e73c 100644 --- a/app/models/admin_profile.rb +++ b/app/models/admin_profile.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: admin_profiles -# -# id :bigint not null, primary key -# avatar_data :text(65535) -# email :string(255) -# name :string(255) -# show_on_team_page :boolean -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# github_id :string(255) -# twitter_id :string(255) -# -# Indexes -# -# index_admin_profiles_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class AdminProfile < ApplicationRecord include ActionView::Helpers::UrlHelper include AvatarUploader::Attachment(:avatar) diff --git a/app/models/announcement.rb b/app/models/announcement.rb index 3795b287d..5fd393266 100644 --- a/app/models/announcement.rb +++ b/app/models/announcement.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: announcements -# -# id :bigint not null, primary key -# body :text(65535) -# publish :boolean -# publish_time :datetime -# conference_id :bigint not null -# -# Indexes -# -# index_announcements_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class Announcement < ApplicationRecord belongs_to :conference diff --git a/app/models/chat_message.rb b/app/models/chat_message.rb index fc6201185..dd1fae89d 100644 --- a/app/models/chat_message.rb +++ b/app/models/chat_message.rb @@ -1,39 +1,3 @@ -# == Schema Information -# -# Table name: chat_messages -# -# id :bigint not null, primary key -# body :text(65535) -# children_count :integer default(0), not null -# depth :integer default(0), not null -# lft :integer not null -# message_type :integer -# rgt :integer not null -# room_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# parent_id :integer -# profile_id :bigint -# room_id :bigint -# speaker_id :bigint -# -# Indexes -# -# index_chat_messages_on_conference_id (conference_id) -# index_chat_messages_on_lft (lft) -# index_chat_messages_on_parent_id (parent_id) -# index_chat_messages_on_profile_id (profile_id) -# index_chat_messages_on_rgt (rgt) -# index_chat_messages_on_speaker_id (speaker_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (speaker_id => speakers.id) -# - class ChatMessage < ApplicationRecord acts_as_nested_set diff --git a/app/models/check_in.rb b/app/models/check_in.rb index 747b5cff3..c18e998bc 100644 --- a/app/models/check_in.rb +++ b/app/models/check_in.rb @@ -1,16 +1,3 @@ -# == Schema Information -# -# Table name: check_ins -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :integer -# -# Indexes -# -# index_check_ins_on_profile_id (profile_id) -# class CheckIn < ApplicationRecord has_one :profile end diff --git a/app/models/check_in_conference.rb b/app/models/check_in_conference.rb index 5b3443dcc..4b7ea1c14 100644 --- a/app/models/check_in_conference.rb +++ b/app/models/check_in_conference.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: check_in_conferences -# -# id :bigint not null, primary key -# check_in_timestamp :datetime not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# profile_id :bigint not null -# scanner_profile_id :bigint -# -# Indexes -# -# index_check_in_conferences_on_conference_id (conference_id) -# index_check_in_conferences_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (profile_id => profiles.id) -# class CheckInConference < ApplicationRecord belongs_to :conference belongs_to :profile diff --git a/app/models/check_in_talk.rb b/app/models/check_in_talk.rb index 54c46a216..466dea12b 100644 --- a/app/models/check_in_talk.rb +++ b/app/models/check_in_talk.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: check_in_talks -# -# id :bigint not null, primary key -# check_in_timestamp :datetime not null -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :bigint not null -# scanner_profile_id :bigint -# talk_id :bigint not null -# -# Indexes -# -# index_check_in_talks_on_profile_id (profile_id) -# index_check_in_talks_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (talk_id => talks.id) -# class CheckInTalk < ApplicationRecord belongs_to :talk belongs_to :profile diff --git a/app/models/conference.rb b/app/models/conference.rb index b65004265..2f29b77c8 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -1,37 +1,3 @@ -# == Schema Information -# -# Table name: conferences -# -# id :bigint not null, primary key -# abbr :string(255) -# about :text(65535) -# attendee_entry :integer default("attendee_entry_disabled") -# brief :string(255) -# capacity :integer -# cfp_result_visible :boolean default(FALSE) -# coc :text(65535) -# committee_name :string(255) default("CloudNative Days Committee"), not null -# conference_status :string(255) default("registered") -# contact_url :text(65535) -# copyright :string(255) -# name :string(255) -# privacy_policy :text(65535) -# privacy_policy_for_speaker :text(65535) -# rehearsal_mode :boolean default(FALSE), not null -# show_sponsors :boolean default(FALSE) -# show_timetable :integer default("show_timetable_disabled") -# speaker_entry :integer default("speaker_entry_disabled") -# sponsor_guideline_url :text(65535) -# theme :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# -# Indexes -# -# index_conferences_on_abbr (abbr) -# index_conferences_on_abbr_and_conference_status (abbr,conference_status) -# - class Conference < ApplicationRecord # - registered # - イベント開催前、もしくは2日間のイベントで1日目が終わって2日目が始まるまで diff --git a/app/models/conference_day.rb b/app/models/conference_day.rb index c691b8f75..18d5992b6 100644 --- a/app/models/conference_day.rb +++ b/app/models/conference_day.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: conference_days -# -# id :bigint not null, primary key -# date :date -# end_time :time -# internal :boolean default(FALSE), not null -# start_time :time -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint -# -# Indexes -# -# index_conference_days_on_conference_id (conference_id) -# - class ConferenceDay < ApplicationRecord has_many :talks, -> { order('conference_day_id ASC, HOUR(start_time) ASC, track_id ASC, MINUTE(start_time) ASC') } belongs_to :conference diff --git a/app/models/form_item.rb b/app/models/form_item.rb index 8b7fe8c12..95585f335 100644 --- a/app/models/form_item.rb +++ b/app/models/form_item.rb @@ -1,15 +1,3 @@ -# == Schema Information -# -# Table name: form_items -# -# id :bigint not null, primary key -# attr :string(255) -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# - class FormItem < ApplicationRecord belongs_to :conference diff --git a/app/models/form_value.rb b/app/models/form_value.rb index 39bf91ff4..b02da69d4 100644 --- a/app/models/form_value.rb +++ b/app/models/form_value.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: form_values -# -# id :bigint not null, primary key -# value :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# form_item_id :bigint not null -# profile_id :bigint not null -# -# Indexes -# -# index_form_values_on_form_item_id (form_item_id) -# index_form_values_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (form_item_id => form_items.id) -# fk_rails_... (profile_id => profiles.id) -# class FormValue < ApplicationRecord belongs_to :profile belongs_to :form_item diff --git a/app/models/intermission.rb b/app/models/intermission.rb index e524b72b3..8e1838a60 100644 --- a/app/models/intermission.rb +++ b/app/models/intermission.rb @@ -1,44 +1,2 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# class Intermission < Talk end diff --git a/app/models/keynote_session.rb b/app/models/keynote_session.rb index 29ba3a6d2..b2abc72f7 100644 --- a/app/models/keynote_session.rb +++ b/app/models/keynote_session.rb @@ -1,44 +1,2 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# class KeynoteSession < Talk end diff --git a/app/models/link.rb b/app/models/link.rb index 86d73da42..1c685ff97 100644 --- a/app/models/link.rb +++ b/app/models/link.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: links -# -# id :bigint not null, primary key -# description :text(65535) -# title :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_links_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class Link < ApplicationRecord belongs_to :conference end diff --git a/app/models/media_live_channel.rb b/app/models/media_live_channel.rb index d0f5dbae3..f70f504e1 100644 --- a/app/models/media_live_channel.rb +++ b/app/models/media_live_channel.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: media_live_channels -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# channel_id :string(255) -# media_live_input_id :string(255) not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_channels_on_media_live_input_id (media_live_input_id) -# index_media_live_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_live_input_id => media_live_inputs.id) -# fk_rails_... (streaming_id => streamings.id) -# - require 'aws-sdk-medialive' class MediaLiveChannel < ApplicationRecord diff --git a/app/models/media_live_input.rb b/app/models/media_live_input.rb index 9c3b6bdd6..3171bd1a8 100644 --- a/app/models/media_live_input.rb +++ b/app/models/media_live_input.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: media_live_inputs -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# input_id :string(255) -# media_live_input_security_group_id :string(255) not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_inputs_on_media_live_input_security_group_id (media_live_input_security_group_id) -# index_media_live_inputs_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_live_input_security_group_id => media_live_input_security_groups.id) -# fk_rails_... (streaming_id => streamings.id) -# require 'aws-sdk-medialive' class MediaLiveInput < ApplicationRecord diff --git a/app/models/media_live_input_security_group.rb b/app/models/media_live_input_security_group.rb index 660fe5e56..c4689ceae 100644 --- a/app/models/media_live_input_security_group.rb +++ b/app/models/media_live_input_security_group.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: media_live_input_security_groups -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# input_security_group_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_input_security_groups_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# require 'aws-sdk-medialive' class MediaLiveInputSecurityGroup < ApplicationRecord diff --git a/app/models/media_package_channel.rb b/app/models/media_package_channel.rb index f76de5719..e039351a8 100644 --- a/app/models/media_package_channel.rb +++ b/app/models/media_package_channel.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: media_package_channels -# -# id :bigint not null, primary key -# channel_id :string(255) default("") -# streaming_id :string(255) -# -# Indexes -# -# index_media_package_channels_on_channel_id (channel_id) -# index_media_package_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# - class MediaPackageChannel < ApplicationRecord include MediaPackageHelper include EnvHelper diff --git a/app/models/media_package_harvest_job.rb b/app/models/media_package_harvest_job.rb index 73bc45d66..9d3977490 100644 --- a/app/models/media_package_harvest_job.rb +++ b/app/models/media_package_harvest_job.rb @@ -1,29 +1,3 @@ -# == Schema Information -# -# Table name: media_package_harvest_jobs -# -# id :bigint not null, primary key -# end_time :datetime -# start_time :datetime -# status :string(255) -# conference_id :bigint not null -# job_id :string(255) -# media_package_channel_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_media_package_harvest_jobs_on_conference_id (conference_id) -# index_media_package_harvest_jobs_on_media_package_channel_id (media_package_channel_id) -# index_media_package_harvest_jobs_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (talk_id => talks.id) -# - class MediaPackageHarvestJob < ApplicationRecord include MediaPackageHelper include EnvHelper diff --git a/app/models/media_package_origin_endpoint.rb b/app/models/media_package_origin_endpoint.rb index 0b03235bc..431244315 100644 --- a/app/models/media_package_origin_endpoint.rb +++ b/app/models/media_package_origin_endpoint.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: media_package_origin_endpoints -# -# id :bigint not null, primary key -# endpoint_id :string(255) -# media_package_channel_id :bigint not null -# streaming_id :string(255) -# -# Indexes -# -# index_media_package_origin_endpoints_on_media_package_channel_id (media_package_channel_id) -# index_media_package_origin_endpoints_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (streaming_id => streamings.id) -# - class MediaPackageOriginEndpoint < ApplicationRecord include MediaPackageHelper include EnvHelper diff --git a/app/models/media_package_parameter.rb b/app/models/media_package_parameter.rb index 3ed5d93e7..1f0f3b2af 100644 --- a/app/models/media_package_parameter.rb +++ b/app/models/media_package_parameter.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: media_package_parameters -# -# id :string(255) not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# media_package_channel_id :bigint not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_parameters_on_media_package_channel_id (media_package_channel_id) -# index_media_package_parameters_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (streaming_id => streamings.id) -# require 'aws-sdk-medialive' class MediaPackageParameter < ApplicationRecord diff --git a/app/models/media_package_v2_channel.rb b/app/models/media_package_v2_channel.rb index 352e27a33..3224718a0 100644 --- a/app/models/media_package_v2_channel.rb +++ b/app/models/media_package_v2_channel.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_channels -# -# id :string(255) not null, primary key -# name :string(255) -# media_package_v2_channel_group_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_channels_on_channel_group_id (media_package_v2_channel_group_id) -# index_media_package_v2_channels_on_name (name) UNIQUE -# index_media_package_v2_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# - require 'aws-sdk-mediapackagev2' class MediaPackageV2Channel < ApplicationRecord diff --git a/app/models/media_package_v2_channel_group.rb b/app/models/media_package_v2_channel_group.rb index 2cd17440c..6569987c6 100644 --- a/app/models/media_package_v2_channel_group.rb +++ b/app/models/media_package_v2_channel_group.rb @@ -1,20 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_channel_groups -# -# id :string(255) not null, primary key -# name :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_v2_channel_groups_on_name (name) UNIQUE -# index_media_package_v2_channel_groups_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# require 'aws-sdk-mediapackagev2' class MediaPackageV2ChannelGroup < ApplicationRecord diff --git a/app/models/media_package_v2_origin_endpoint.rb b/app/models/media_package_v2_origin_endpoint.rb index 5b7823b2a..188820ecc 100644 --- a/app/models/media_package_v2_origin_endpoint.rb +++ b/app/models/media_package_v2_origin_endpoint.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_origin_endpoints -# -# id :string(255) not null, primary key -# name :string(255) -# media_package_v2_channel_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_v2_origin_endpoints_on_name (name) UNIQUE -# index_media_package_v2_origin_endpoints_on_streaming_id (streaming_id) -# index_origin_endpoints_on_channel_id (media_package_v2_channel_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# require 'aws-sdk-mediapackagev2' require 'aws-sdk-cloudfront' diff --git a/app/models/profile.rb b/app/models/profile.rb index 4b821666f..710cde5af 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -1,41 +1,3 @@ -# == Schema Information -# -# Table name: profiles -# -# id :bigint not null, primary key -# calendar_unique_code :string(255) -# company_address :string(255) -# company_address_level1 :string(255) -# company_address_level2 :string(255) -# company_address_line1 :string(255) -# company_address_line2 :string(255) -# company_email :string(255) -# company_fax :string(255) -# company_name :string(255) -# company_postal_code :string(255) -# company_tel :string(255) -# department :string(255) -# email :string(255) -# first_name :string(255) -# first_name_kana :string(255) -# last_name :string(255) -# last_name_kana :string(255) -# occupation :string(255) -# participation :string(255) -# position :string(255) -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# annual_sales_id :integer default(11) -# company_address_prefecture_id :string(255) -# company_name_prefix_id :string(255) -# company_name_suffix_id :string(255) -# conference_id :integer -# industry_id :integer -# number_of_employee_id :integer default(12) -# occupation_id :integer default(34) -# - class EmailValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i diff --git a/app/models/proposal.rb b/app/models/proposal.rb index bc9cd630a..f5a2042ea 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -1,15 +1,3 @@ -# == Schema Information -# -# Table name: proposals -# -# id :bigint not null, primary key -# status :integer default("registered"), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer not null -# talk_id :integer not null -# - class Proposal < ApplicationRecord enum :status, { registered: 0, accepted: 1, rejected: 2 } STATUS_MESSAGE = { diff --git a/app/models/proposal_item.rb b/app/models/proposal_item.rb index fd6e8c448..996cbf6eb 100644 --- a/app/models/proposal_item.rb +++ b/app/models/proposal_item.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: proposal_items -# -# id :bigint not null, primary key -# label :string(255) -# params :json -# conference_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_proposal_items_on_conference_id (conference_id) -# index_proposal_items_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class ProposalItem < ApplicationRecord belongs_to :conference belongs_to :talk diff --git a/app/models/proposal_item_config.rb b/app/models/proposal_item_config.rb index a11020954..74b02dfe6 100644 --- a/app/models/proposal_item_config.rb +++ b/app/models/proposal_item_config.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: proposal_item_configs -# -# id :bigint not null, primary key -# description :text(65535) -# item_name :string(255) -# item_number :integer -# key :string(255) -# label :string(255) -# params :json -# type :string(255) -# value :string(255) -# conference_id :bigint not null -# -# Indexes -# -# index_proposal_item_configs_on_conference_id (conference_id) -# index_proposal_item_configs_on_conference_id_and_item_number (conference_id,item_number) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class ProposalItemConfig < ApplicationRecord belongs_to :conference end diff --git a/app/models/proposal_item_config_check_box.rb b/app/models/proposal_item_config_check_box.rb index 75392165d..bb02f5f19 100644 --- a/app/models/proposal_item_config_check_box.rb +++ b/app/models/proposal_item_config_check_box.rb @@ -1,27 +1,2 @@ -# == Schema Information -# -# Table name: proposal_item_configs -# -# id :bigint not null, primary key -# description :text(65535) -# item_name :string(255) -# item_number :integer -# key :string(255) -# label :string(255) -# params :json -# type :string(255) -# value :string(255) -# conference_id :bigint not null -# -# Indexes -# -# index_proposal_item_configs_on_conference_id (conference_id) -# index_proposal_item_configs_on_conference_id_and_item_number (conference_id,item_number) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class ProposalItemConfigCheckBox < ProposalItemConfig end diff --git a/app/models/proposal_item_config_radio_button.rb b/app/models/proposal_item_config_radio_button.rb index 101c7925d..f44d0345e 100644 --- a/app/models/proposal_item_config_radio_button.rb +++ b/app/models/proposal_item_config_radio_button.rb @@ -1,27 +1,2 @@ -# == Schema Information -# -# Table name: proposal_item_configs -# -# id :bigint not null, primary key -# description :text(65535) -# item_name :string(255) -# item_number :integer -# key :string(255) -# label :string(255) -# params :json -# type :string(255) -# value :string(255) -# conference_id :bigint not null -# -# Indexes -# -# index_proposal_item_configs_on_conference_id (conference_id) -# index_proposal_item_configs_on_conference_id_and_item_number (conference_id,item_number) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class ProposalItemConfigRadioButton < ProposalItemConfig end diff --git a/app/models/public_profile.rb b/app/models/public_profile.rb index 2d2bcdf19..5a5032ad6 100644 --- a/app/models/public_profile.rb +++ b/app/models/public_profile.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: public_profiles -# -# id :bigint not null, primary key -# avatar_data :text(65535) -# is_public :boolean default(FALSE) -# nickname :string(255) default("") -# github_id :string(255) default("") -# profile_id :bigint not null -# twitter_id :string(255) default("") -# -# Indexes -# -# index_public_profiles_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (profile_id => profiles.id) -# class PublicProfile < ApplicationRecord include ActionView::Helpers::UrlHelper include AvatarUploader::Attachment(:avatar) diff --git a/app/models/registered_talk.rb b/app/models/registered_talk.rb index cca288d70..61f16bb57 100644 --- a/app/models/registered_talk.rb +++ b/app/models/registered_talk.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: registered_talks -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :integer -# talk_id :integer -# - class RegisteredTalk < ApplicationRecord belongs_to :talk belongs_to :profile diff --git a/app/models/room.rb b/app/models/room.rb index 7308092a9..0238dfc98 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: rooms -# -# id :bigint not null, primary key -# description :text(65535) -# name :string(255) not null -# number_of_seats :integer default(0), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_rooms_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# class Room < ApplicationRecord belongs_to :conference has_one :track diff --git a/app/models/session.rb b/app/models/session.rb index 7c705579f..587f0b682 100644 --- a/app/models/session.rb +++ b/app/models/session.rb @@ -1,44 +1,2 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# class Session < Talk end diff --git a/app/models/speaker.rb b/app/models/speaker.rb index 27754657d..aad2a4fd3 100644 --- a/app/models/speaker.rb +++ b/app/models/speaker.rb @@ -1,29 +1,3 @@ -# == Schema Information -# -# Table name: speakers -# -# id :bigint not null, primary key -# additional_documents :text(65535) -# avatar_data :text(65535) -# company :string(255) -# email :text(65535) -# job_title :string(255) -# name :string(255) -# name_mother_tongue :string(255) -# profile :text(65535) -# sub :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# github_id :string(255) -# sponsor_id :bigint -# twitter_id :string(255) -# -# Indexes -# -# index_speakers_on_conference_id_and_email (conference_id,email) -# - class Speaker < ApplicationRecord include ActionView::Helpers::UrlHelper include AvatarUploader::Attachment(:avatar) diff --git a/app/models/speaker_announcement.rb b/app/models/speaker_announcement.rb index 895e3174b..88b659f76 100644 --- a/app/models/speaker_announcement.rb +++ b/app/models/speaker_announcement.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: speaker_announcements -# -# id :bigint not null, primary key -# body :text(65535) not null -# publish :boolean default(FALSE) -# publish_time :datetime not null -# receiver :integer default("person"), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_speaker_announcements_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class SpeakerAnnouncement < ApplicationRecord enum :receiver, { person: 0, all_speaker: 1, only_accepted: 2, only_rejected: 3 } JA_RECEIVER = { person: '個人', all_speaker: '全員', only_accepted: 'CFP採択者', only_rejected: 'CFP非採択者' }.freeze diff --git a/app/models/speaker_announcement_middle.rb b/app/models/speaker_announcement_middle.rb index 74bf83762..3443f1158 100644 --- a/app/models/speaker_announcement_middle.rb +++ b/app/models/speaker_announcement_middle.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: speaker_announcement_middles -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# speaker_announcement_id :bigint not null -# speaker_id :bigint not null -# -# Indexes -# -# index_speaker_announcement_middles_on_speaker_announcement_id (speaker_announcement_id) -# index_speaker_announcement_middles_on_speaker_id (speaker_id) -# -# Foreign Keys -# -# fk_rails_... (speaker_announcement_id => speaker_announcements.id) -# fk_rails_... (speaker_id => speakers.id) -# - class SpeakerAnnouncementMiddle < ApplicationRecord belongs_to :speaker belongs_to :speaker_announcement diff --git a/app/models/speaker_invitation.rb b/app/models/speaker_invitation.rb index 3db29b784..7e201d61b 100644 --- a/app/models/speaker_invitation.rb +++ b/app/models/speaker_invitation.rb @@ -1,26 +1,3 @@ -# == Schema Information -# -# Table name: speaker_invitations -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_speaker_invitations_on_conference_id (conference_id) -# index_speaker_invitations_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (talk_id => talks.id) -# class SpeakerInvitation < ApplicationRecord belongs_to :talk belongs_to :conference diff --git a/app/models/speaker_invitation_accept.rb b/app/models/speaker_invitation_accept.rb index 240a53304..bc38b5634 100644 --- a/app/models/speaker_invitation_accept.rb +++ b/app/models/speaker_invitation_accept.rb @@ -1,30 +1,3 @@ -# == Schema Information -# -# Table name: speaker_invitation_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# speaker_id :bigint not null -# speaker_invitation_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_speaker_invitation_accepts_on_conference_id (conference_id) -# index_speaker_invitation_accepts_on_conference_speaker_talk (conference_id,speaker_id,talk_id) UNIQUE -# index_speaker_invitation_accepts_on_speaker_id (speaker_id) -# index_speaker_invitation_accepts_on_speaker_invitation_id (speaker_invitation_id) -# index_speaker_invitation_accepts_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (speaker_id => speakers.id) -# fk_rails_... (speaker_invitation_id => speaker_invitations.id) -# fk_rails_... (talk_id => talks.id) -# class SpeakerInvitationAccept < ApplicationRecord belongs_to :speaker_invitation belongs_to :conference diff --git a/app/models/sponsor.rb b/app/models/sponsor.rb index b956e8192..259312d4b 100644 --- a/app/models/sponsor.rb +++ b/app/models/sponsor.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: sponsors -# -# id :bigint not null, primary key -# abbr :string(255) -# description :text(65535) -# name :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_sponsors_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class Sponsor < ApplicationRecord belongs_to :conference diff --git a/app/models/sponsor_attachment.rb b/app/models/sponsor_attachment.rb index a6f181864..8c0175e03 100644 --- a/app/models/sponsor_attachment.rb +++ b/app/models/sponsor_attachment.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_attachments -# -# id :bigint not null, primary key -# file_data :string(255) -# link :string(255) -# public :boolean -# text :text(65535) -# title :string(255) -# type :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_attachments_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (sponsor_id => sponsors.id) -# - class SponsorAttachment < ApplicationRecord belongs_to :sponsor end diff --git a/app/models/sponsor_attachment_logo_image.rb b/app/models/sponsor_attachment_logo_image.rb index 4186f9cb3..c4df24602 100644 --- a/app/models/sponsor_attachment_logo_image.rb +++ b/app/models/sponsor_attachment_logo_image.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_attachments -# -# id :bigint not null, primary key -# file_data :string(255) -# link :string(255) -# public :boolean -# text :text(65535) -# title :string(255) -# type :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_attachments_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (sponsor_id => sponsors.id) -# - class SponsorAttachmentLogoImage < SponsorAttachment include SponsorAttachmentFileUploader::Attachment(:file) diff --git a/app/models/sponsor_contact.rb b/app/models/sponsor_contact.rb index 720ba5b6c..56f76355f 100644 --- a/app/models/sponsor_contact.rb +++ b/app/models/sponsor_contact.rb @@ -1,26 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contacts -# -# id :bigint not null, primary key -# email :string(255) -# name :string(255) -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contacts_on_conference_id (conference_id) -# index_sponsor_contacts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class SponsorContact < ApplicationRecord include ActionView::Helpers::UrlHelper diff --git a/app/models/sponsor_contact_invite.rb b/app/models/sponsor_contact_invite.rb index 33b077c58..1f48f7642 100644 --- a/app/models/sponsor_contact_invite.rb +++ b/app/models/sponsor_contact_invite.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contact_invites -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contact_invites_on_conference_id (conference_id) -# index_sponsor_contact_invites_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - class SponsorContactInvite < ApplicationRecord belongs_to :conference belongs_to :sponsor diff --git a/app/models/sponsor_contact_invite_accept.rb b/app/models/sponsor_contact_invite_accept.rb index aee31a147..e667d6e25 100644 --- a/app/models/sponsor_contact_invite_accept.rb +++ b/app/models/sponsor_contact_invite_accept.rb @@ -1,30 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contact_invite_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_contact_id :bigint not null -# sponsor_contact_invite_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contact_invite_accepts_on_conference_id (conference_id) -# index_sponsor_contact_invite_accepts_on_invitation_id (sponsor_contact_invite_id) -# index_sponsor_contact_invite_accepts_on_sponsor_contact_id (sponsor_contact_id) -# index_sponsor_contact_invite_accepts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_contact_id => sponsor_contacts.id) -# fk_rails_... (sponsor_contact_invite_id => sponsor_contact_invites.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - class SponsorContactInviteAccept < ApplicationRecord belongs_to :conference belongs_to :sponsor diff --git a/app/models/sponsor_session.rb b/app/models/sponsor_session.rb index 5ca6659b3..e2d117880 100644 --- a/app/models/sponsor_session.rb +++ b/app/models/sponsor_session.rb @@ -1,45 +1,3 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# class SponsorSession < Talk belongs_to :sponsor end diff --git a/app/models/sponsor_speaker_invite.rb b/app/models/sponsor_speaker_invite.rb index d4824bc1c..4e3ad76ca 100644 --- a/app/models/sponsor_speaker_invite.rb +++ b/app/models/sponsor_speaker_invite.rb @@ -1,27 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_speaker_invites -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_speaker_invites_on_conference_id (conference_id) -# index_sponsor_speaker_invites_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - class SponsorSpeakerInvite < ApplicationRecord belongs_to :conference belongs_to :sponsor diff --git a/app/models/sponsor_speaker_invite_accept.rb b/app/models/sponsor_speaker_invite_accept.rb index 58e79f380..6fb8afc11 100644 --- a/app/models/sponsor_speaker_invite_accept.rb +++ b/app/models/sponsor_speaker_invite_accept.rb @@ -1,34 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_speaker_invite_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# speaker_id :bigint not null -# sponsor_contact_id :bigint not null -# sponsor_id :bigint not null -# sponsor_speaker_invite_id :bigint not null -# -# Indexes -# -# idx_spk_inv_accepts_on_conf_spsr_speaker_contact (conference_id,sponsor_id,speaker_id,sponsor_contact_id) UNIQUE -# idx_spk_inv_accepts_on_invite (sponsor_speaker_invite_id) -# index_sponsor_speaker_invite_accepts_on_conference_id (conference_id) -# index_sponsor_speaker_invite_accepts_on_speaker_id (speaker_id) -# index_sponsor_speaker_invite_accepts_on_sponsor_contact_id (sponsor_contact_id) -# index_sponsor_speaker_invite_accepts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (speaker_id => speakers.id) -# fk_rails_... (sponsor_contact_id => sponsor_contacts.id) -# fk_rails_... (sponsor_id => sponsors.id) -# fk_rails_... (sponsor_speaker_invite_id => sponsor_speaker_invites.id) -# - class SponsorSpeakerInviteAccept < ApplicationRecord belongs_to :conference belongs_to :sponsor diff --git a/app/models/sponsor_type.rb b/app/models/sponsor_type.rb index 18a5d7ca9..4f4273fae 100644 --- a/app/models/sponsor_type.rb +++ b/app/models/sponsor_type.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_types -# -# id :bigint not null, primary key -# name :string(255) -# order :integer -# visible :boolean default(TRUE) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_sponsor_types_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class SponsorType < ApplicationRecord belongs_to :conference diff --git a/app/models/sponsors_sponsor_type.rb b/app/models/sponsors_sponsor_type.rb index c4c440c9b..f36e8cfa9 100644 --- a/app/models/sponsors_sponsor_type.rb +++ b/app/models/sponsors_sponsor_type.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: sponsors_sponsor_types -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# sponsor_id :integer -# sponsor_type_id :integer -# - class SponsorsSponsorType < ApplicationRecord belongs_to :sponsor, optional: true belongs_to :sponsor_type, optional: true diff --git a/app/models/stamp_rally_check_in.rb b/app/models/stamp_rally_check_in.rb index 3d2dac9c8..919b860d6 100644 --- a/app/models/stamp_rally_check_in.rb +++ b/app/models/stamp_rally_check_in.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: stamp_rally_check_ins -# -# id :string(26) not null, primary key -# check_in_timestamp :datetime not null -# profile_id :bigint not null -# stamp_rally_check_point_id :string(26) not null -# -# Indexes -# -# index_stamp_rally_check_ins_on_profile_id (profile_id) -# index_stamp_rally_check_ins_on_stamp_rally_check_point_id (stamp_rally_check_point_id) -# -# Foreign Keys -# -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (stamp_rally_check_point_id => stamp_rally_check_points.id) -# class StampRallyCheckIn < ApplicationRecord include UlidPk diff --git a/app/models/stamp_rally_check_point.rb b/app/models/stamp_rally_check_point.rb index 850d9db4f..4e759b80e 100644 --- a/app/models/stamp_rally_check_point.rb +++ b/app/models/stamp_rally_check_point.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: stamp_rally_check_points -# -# id :string(26) not null, primary key -# description :string(255) not null -# name :string(255) not null -# position :integer -# type :string(255) not null -# conference_id :bigint not null -# sponsor_id :bigint -# -# Indexes -# -# index_stamp_rally_check_points_on_conference_id (conference_id) -# index_stamp_rally_check_points_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# class StampRallyCheckPoint < ApplicationRecord include UlidPk acts_as_list scope: :conference, top_of_list: 0 diff --git a/app/models/stamp_rally_check_point_booth.rb b/app/models/stamp_rally_check_point_booth.rb index 5b23a09d1..c3c572e9c 100644 --- a/app/models/stamp_rally_check_point_booth.rb +++ b/app/models/stamp_rally_check_point_booth.rb @@ -1,23 +1,2 @@ -# == Schema Information -# -# Table name: stamp_rally_check_points -# -# id :string(26) not null, primary key -# description :string(255) not null -# name :string(255) not null -# position :integer -# type :string(255) not null -# conference_id :bigint not null -# sponsor_id :bigint -# -# Indexes -# -# index_stamp_rally_check_points_on_conference_id (conference_id) -# index_stamp_rally_check_points_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# class StampRallyCheckPointBooth < StampRallyCheckPoint end diff --git a/app/models/stamp_rally_check_point_finish.rb b/app/models/stamp_rally_check_point_finish.rb index 3551cd0ef..94327e5a7 100644 --- a/app/models/stamp_rally_check_point_finish.rb +++ b/app/models/stamp_rally_check_point_finish.rb @@ -1,23 +1,2 @@ -# == Schema Information -# -# Table name: stamp_rally_check_points -# -# id :string(26) not null, primary key -# description :string(255) not null -# name :string(255) not null -# position :integer -# type :string(255) not null -# conference_id :bigint not null -# sponsor_id :bigint -# -# Indexes -# -# index_stamp_rally_check_points_on_conference_id (conference_id) -# index_stamp_rally_check_points_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# class StampRallyCheckPointFinish < StampRallyCheckPoint end diff --git a/app/models/stamp_rally_configure.rb b/app/models/stamp_rally_configure.rb index 544bebc69..e1d063600 100644 --- a/app/models/stamp_rally_configure.rb +++ b/app/models/stamp_rally_configure.rb @@ -1,19 +1,3 @@ -# == Schema Information -# -# Table name: stamp_rally_configures -# -# id :string(26) not null, primary key -# finish_threshold :decimal(10, ) not null -# conference_id :bigint not null -# -# Indexes -# -# index_stamp_rally_configures_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# class StampRallyConfigure < ApplicationRecord include UlidPk belongs_to :conference diff --git a/app/models/stats_of_registrant.rb b/app/models/stats_of_registrant.rb index 2c10edd09..0e8da4198 100644 --- a/app/models/stats_of_registrant.rb +++ b/app/models/stats_of_registrant.rb @@ -1,20 +1,3 @@ -# == Schema Information -# -# Table name: stats_of_registrants -# -# id :bigint not null, primary key -# number_of_registrants :integer -# offline_attendees :decimal(10, ) -# online_attendees :decimal(10, ) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint -# -# Indexes -# -# index_stats_of_registrants_on_conference_id (conference_id) -# - class StatsOfRegistrant < ApplicationRecord belongs_to :conference end diff --git a/app/models/streaming.rb b/app/models/streaming.rb index 3a090d1db..f7ed97c21 100644 --- a/app/models/streaming.rb +++ b/app/models/streaming.rb @@ -1,27 +1,3 @@ -# == Schema Information -# -# Table name: streamings -# -# id :string(255) not null, primary key -# error_cause :text(65535) -# status :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# track_id :bigint not null -# -# Indexes -# -# index_streamings_on_conference_id (conference_id) -# index_streamings_on_conference_id_and_track_id (conference_id,track_id) UNIQUE -# index_streamings_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (track_id => tracks.id) -# - class Streaming < ApplicationRecord before_create :set_uuid diff --git a/app/models/talk.rb b/app/models/talk.rb index 614e82ea2..cb25374b9 100644 --- a/app/models/talk.rb +++ b/app/models/talk.rb @@ -1,46 +1,3 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# - require 'csv' class Talk < ApplicationRecord diff --git a/app/models/talk/type.rb b/app/models/talk/type.rb index 785e540f6..195a06281 100644 --- a/app/models/talk/type.rb +++ b/app/models/talk/type.rb @@ -1,11 +1,3 @@ -# == Schema Information -# -# Table name: talk_types -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# class Talk < ApplicationRecord class Type < ApplicationRecord KLASSES = [Session, KeynoteSession, SponsorSession, Intermission].freeze diff --git a/app/models/talk_category.rb b/app/models/talk_category.rb index 9b365461b..2840eaa34 100644 --- a/app/models/talk_category.rb +++ b/app/models/talk_category.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: talk_categories -# -# id :bigint not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# -# Indexes -# -# index_talk_categories_on_conference_id (conference_id) -# - class TalkCategory < ApplicationRecord has_one :talk belongs_to :conference diff --git a/app/models/talk_difficulty.rb b/app/models/talk_difficulty.rb index 413a6f43a..4aca348d6 100644 --- a/app/models/talk_difficulty.rb +++ b/app/models/talk_difficulty.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: talk_difficulties -# -# id :bigint not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# -# Indexes -# -# index_talk_difficulties_on_conference_id (conference_id) -# - class TalkDifficulty < ApplicationRecord has_one :talk belongs_to :conference diff --git a/app/models/talk_time.rb b/app/models/talk_time.rb index 9869b14ff..cdf6d1106 100644 --- a/app/models/talk_time.rb +++ b/app/models/talk_time.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: talk_times -# -# id :bigint not null, primary key -# time_minutes :integer -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_talk_times_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - class TalkTime < ApplicationRecord has_many :talks belongs_to :conference diff --git a/app/models/talks_speaker.rb b/app/models/talks_speaker.rb index 4e8313cd8..b9ec5247c 100644 --- a/app/models/talks_speaker.rb +++ b/app/models/talks_speaker.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: talks_speakers -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# speaker_id :integer -# talk_id :integer -# -# Indexes -# -# index_talks_speakers_on_speaker_id (speaker_id) -# - class TalksSpeaker < ApplicationRecord belongs_to :talk, optional: true belongs_to :speaker, optional: true diff --git a/app/models/track.rb b/app/models/track.rb index 300bf3959..ef8d588c8 100644 --- a/app/models/track.rb +++ b/app/models/track.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: tracks -# -# id :bigint not null, primary key -# name :string(255) -# number :integer -# video_platform :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# room_id :bigint default(0) -# video_id :string(255) -# -# Indexes -# -# index_tracks_on_conference_id (conference_id) -# - class Track < ApplicationRecord has_many :talks has_one :streaming diff --git a/app/models/video.rb b/app/models/video.rb index e86048c36..c881c9770 100644 --- a/app/models/video.rb +++ b/app/models/video.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: videos -# -# id :bigint not null, primary key -# on_air :boolean -# site :string(255) -# url :string(255) -# video_file_data :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# talk_id :integer -# video_id :string(255) -# - class Video < ApplicationRecord include VideoFileUploader::Attachment(:video_file) diff --git a/app/models/video_registration.rb b/app/models/video_registration.rb index 5ca4491e7..cb4486264 100644 --- a/app/models/video_registration.rb +++ b/app/models/video_registration.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: video_registrations -# -# id :bigint not null, primary key -# statistics :json not null -# status :integer default("unsubmitted"), not null -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# talk_id :bigint not null -# -# Indexes -# -# index_video_registrations_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (talk_id => talks.id) -# - class VideoRegistration < ApplicationRecord belongs_to :talk enum :status, { unsubmitted: 0, submitted: 1, confirmed: 2, invalid_format: 3 } diff --git a/app/models/viewer_count.rb b/app/models/viewer_count.rb index a85347873..d5e7231b9 100644 --- a/app/models/viewer_count.rb +++ b/app/models/viewer_count.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: viewer_counts -# -# id :bigint not null, primary key -# count :integer -# stream_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# talk_id :integer -# track_id :integer -# -# Indexes -# -# index_viewer_counts_on_conference_id (conference_id) -# index_viewer_counts_on_talk_id (talk_id) -# index_viewer_counts_on_track_id (track_id) -# - class ViewerCount < ApplicationRecord def self.latest_number_of_viewers on_air_ids = Talk.where(conference_id: Conference.opened.ids).on_air.pluck(:id) diff --git a/lib/tasks/auto_annotate_models.rake b/lib/tasks/auto_annotate_models.rake deleted file mode 100644 index cc3cef82a..000000000 --- a/lib/tasks/auto_annotate_models.rake +++ /dev/null @@ -1,59 +0,0 @@ -# NOTE: only doing this in development as some production environments (Heroku) -# NOTE: are sensitive to local FS writes, and besides -- it's just not proper -# NOTE: to have a dev-mode tool do its thing in production. -if Rails.env.development? || Rails.env.test? - require 'annotate' - task :set_annotation_options do - # You can override any of these by setting an environment variable of the - # same name. - Annotate.set_defaults( - 'active_admin' => 'false', - 'additional_file_patterns' => [], - 'routes' => 'false', - 'models' => 'true', - 'position_in_routes' => 'before', - 'position_in_class' => 'before', - 'position_in_test' => 'before', - 'position_in_fixture' => 'before', - 'position_in_factory' => 'before', - 'position_in_serializer' => 'before', - 'show_foreign_keys' => 'true', - 'show_complete_foreign_keys' => 'false', - 'show_indexes' => 'true', - 'simple_indexes' => 'false', - 'model_dir' => 'app/models', - 'root_dir' => '', - 'include_version' => 'false', - 'require' => '', - 'exclude_tests' => 'false', - 'exclude_fixtures' => 'false', - 'exclude_factories' => 'false', - 'exclude_serializers' => 'false', - 'exclude_scaffolds' => 'true', - 'exclude_controllers' => 'true', - 'exclude_helpers' => 'true', - 'exclude_sti_subclasses' => 'false', - 'ignore_model_sub_dir' => 'false', - 'ignore_columns' => nil, - 'ignore_routes' => nil, - 'ignore_unknown_models' => 'false', - 'hide_limit_column_types' => 'integer,bigint,boolean', - 'hide_default_column_types' => 'json,jsonb,hstore', - 'skip_on_db_migrate' => 'false', - 'format_bare' => 'true', - 'format_rdoc' => 'false', - 'format_yard' => 'false', - 'format_markdown' => 'false', - 'sort' => 'false', - 'force' => 'false', - 'frozen' => 'false', - 'classified_sort' => 'true', - 'trace' => 'false', - 'wrapper_open' => nil, - 'wrapper_close' => nil, - 'with_comment' => 'true' - ) - end - - Annotate.load_tasks -end diff --git a/spec/factories/admin_profiles.rb b/spec/factories/admin_profiles.rb index bb8e08061..89eca6d6b 100644 --- a/spec/factories/admin_profiles.rb +++ b/spec/factories/admin_profiles.rb @@ -1,27 +1,3 @@ -# == Schema Information -# -# Table name: admin_profiles -# -# id :bigint not null, primary key -# avatar_data :text(65535) -# email :string(255) -# name :string(255) -# show_on_team_page :boolean -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# github_id :string(255) -# twitter_id :string(255) -# -# Indexes -# -# index_admin_profiles_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# FactoryBot.define do factory :admin_profile end diff --git a/spec/factories/announcements.rb b/spec/factories/announcements.rb index 5bd353707..30e64a904 100644 --- a/spec/factories/announcements.rb +++ b/spec/factories/announcements.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: announcements -# -# id :bigint not null, primary key -# body :text(65535) -# publish :boolean -# publish_time :datetime -# conference_id :bigint not null -# -# Indexes -# -# index_announcements_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# FactoryBot.define do factory :announcement end diff --git a/spec/factories/chat_messages.rb b/spec/factories/chat_messages.rb index 18f3c5553..49b045f04 100644 --- a/spec/factories/chat_messages.rb +++ b/spec/factories/chat_messages.rb @@ -1,38 +1,3 @@ -# == Schema Information -# -# Table name: chat_messages -# -# id :bigint not null, primary key -# body :text(65535) -# children_count :integer default(0), not null -# depth :integer default(0), not null -# lft :integer not null -# message_type :integer -# rgt :integer not null -# room_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# parent_id :integer -# profile_id :bigint -# room_id :bigint -# speaker_id :bigint -# -# Indexes -# -# index_chat_messages_on_conference_id (conference_id) -# index_chat_messages_on_lft (lft) -# index_chat_messages_on_parent_id (parent_id) -# index_chat_messages_on_profile_id (profile_id) -# index_chat_messages_on_rgt (rgt) -# index_chat_messages_on_speaker_id (speaker_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (speaker_id => speakers.id) -# FactoryBot.define do factory :chat_message diff --git a/spec/factories/check_ins.rb b/spec/factories/check_ins.rb index 5f5825910..a031c514a 100644 --- a/spec/factories/check_ins.rb +++ b/spec/factories/check_ins.rb @@ -1,16 +1,3 @@ -# == Schema Information -# -# Table name: check_ins -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :integer -# -# Indexes -# -# index_check_ins_on_profile_id (profile_id) -# FactoryBot.define do factory :check_in, class: CheckIn do end diff --git a/spec/factories/conference_days.rb b/spec/factories/conference_days.rb index a4a19049e..ab7748c87 100644 --- a/spec/factories/conference_days.rb +++ b/spec/factories/conference_days.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: conference_days -# -# id :bigint not null, primary key -# date :date -# end_time :time -# internal :boolean default(FALSE), not null -# start_time :time -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint -# -# Indexes -# -# index_conference_days_on_conference_id (conference_id) -# - FactoryBot.define do factory :conference_day diff --git a/spec/factories/conferences.rb b/spec/factories/conferences.rb index 696c2e4a5..7179274a5 100644 --- a/spec/factories/conferences.rb +++ b/spec/factories/conferences.rb @@ -1,37 +1,3 @@ -# == Schema Information -# -# Table name: conferences -# -# id :bigint not null, primary key -# abbr :string(255) -# about :text(65535) -# attendee_entry :integer default("attendee_entry_disabled") -# brief :string(255) -# capacity :integer -# cfp_result_visible :boolean default(FALSE) -# coc :text(65535) -# committee_name :string(255) default("CloudNative Days Committee"), not null -# conference_status :string(255) default("registered") -# contact_url :text(65535) -# copyright :string(255) -# name :string(255) -# privacy_policy :text(65535) -# privacy_policy_for_speaker :text(65535) -# rehearsal_mode :boolean default(FALSE), not null -# show_sponsors :boolean default(FALSE) -# show_timetable :integer default("show_timetable_disabled") -# speaker_entry :integer default("speaker_entry_disabled") -# sponsor_guideline_url :text(65535) -# theme :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# -# Indexes -# -# index_conferences_on_abbr (abbr) -# index_conferences_on_abbr_and_conference_status (abbr,conference_status) -# - FactoryBot.define do factory :conference diff --git a/spec/factories/form_items.rb b/spec/factories/form_items.rb index 4e064a782..6b53849e7 100644 --- a/spec/factories/form_items.rb +++ b/spec/factories/form_items.rb @@ -1,15 +1,3 @@ -# == Schema Information -# -# Table name: form_items -# -# id :bigint not null, primary key -# attr :string(255) -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# - FactoryBot.define do factory :form_item do association :conference diff --git a/spec/factories/form_values.rb b/spec/factories/form_values.rb index 039d00ffd..c1a964a92 100644 --- a/spec/factories/form_values.rb +++ b/spec/factories/form_values.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: form_values -# -# id :bigint not null, primary key -# value :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# form_item_id :bigint not null -# profile_id :bigint not null -# -# Indexes -# -# index_form_values_on_form_item_id (form_item_id) -# index_form_values_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (form_item_id => form_items.id) -# fk_rails_... (profile_id => profiles.id) -# FactoryBot.define do factory :form_value do association :profile diff --git a/spec/factories/links.rb b/spec/factories/links.rb index e0d8374f3..95a359792 100644 --- a/spec/factories/links.rb +++ b/spec/factories/links.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: links -# -# id :bigint not null, primary key -# description :text(65535) -# title :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_links_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :link do conference { nil } diff --git a/spec/factories/media_live_channels.rb b/spec/factories/media_live_channels.rb index a3acbaae3..15b821e0e 100644 --- a/spec/factories/media_live_channels.rb +++ b/spec/factories/media_live_channels.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: media_live_channels -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# channel_id :string(255) -# media_live_input_id :string(255) not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_channels_on_media_live_input_id (media_live_input_id) -# index_media_live_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_live_input_id => media_live_inputs.id) -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_live_channel end diff --git a/spec/factories/media_live_input_security_groups.rb b/spec/factories/media_live_input_security_groups.rb index e434793c2..722bc3eff 100644 --- a/spec/factories/media_live_input_security_groups.rb +++ b/spec/factories/media_live_input_security_groups.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: media_live_input_security_groups -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# input_security_group_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_input_security_groups_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_live_input_security_group end diff --git a/spec/factories/media_live_inputs.rb b/spec/factories/media_live_inputs.rb index 1ed9c36ad..6b4214dbb 100644 --- a/spec/factories/media_live_inputs.rb +++ b/spec/factories/media_live_inputs.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: media_live_inputs -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# input_id :string(255) -# media_live_input_security_group_id :string(255) not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_live_inputs_on_media_live_input_security_group_id (media_live_input_security_group_id) -# index_media_live_inputs_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_live_input_security_group_id => media_live_input_security_groups.id) -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_live_input end diff --git a/spec/factories/media_package_channels.rb b/spec/factories/media_package_channels.rb index 284379133..c30e93ea4 100644 --- a/spec/factories/media_package_channels.rb +++ b/spec/factories/media_package_channels.rb @@ -1,20 +1,3 @@ -# == Schema Information -# -# Table name: media_package_channels -# -# id :bigint not null, primary key -# channel_id :string(255) default("") -# streaming_id :string(255) -# -# Indexes -# -# index_media_package_channels_on_channel_id (channel_id) -# index_media_package_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_package_channel end diff --git a/spec/factories/media_package_harvest_jobs.rb b/spec/factories/media_package_harvest_jobs.rb index 71fa5cf7b..13098ee63 100644 --- a/spec/factories/media_package_harvest_jobs.rb +++ b/spec/factories/media_package_harvest_jobs.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: media_package_harvest_jobs -# -# id :bigint not null, primary key -# end_time :datetime -# start_time :datetime -# status :string(255) -# conference_id :bigint not null -# job_id :string(255) -# media_package_channel_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_media_package_harvest_jobs_on_conference_id (conference_id) -# index_media_package_harvest_jobs_on_media_package_channel_id (media_package_channel_id) -# index_media_package_harvest_jobs_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (talk_id => talks.id) -# FactoryBot.define do factory :media_package_harvest_job end diff --git a/spec/factories/media_package_origin_endpoints.rb b/spec/factories/media_package_origin_endpoints.rb index f5c545399..f3d47abdb 100644 --- a/spec/factories/media_package_origin_endpoints.rb +++ b/spec/factories/media_package_origin_endpoints.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: media_package_origin_endpoints -# -# id :bigint not null, primary key -# endpoint_id :string(255) -# media_package_channel_id :bigint not null -# streaming_id :string(255) -# -# Indexes -# -# index_media_package_origin_endpoints_on_media_package_channel_id (media_package_channel_id) -# index_media_package_origin_endpoints_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_package_origin_endpoint end diff --git a/spec/factories/media_package_parameters.rb b/spec/factories/media_package_parameters.rb index 32b10c320..e185a5550 100644 --- a/spec/factories/media_package_parameters.rb +++ b/spec/factories/media_package_parameters.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: media_package_parameters -# -# id :string(255) not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# media_package_channel_id :bigint not null -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_parameters_on_media_package_channel_id (media_package_channel_id) -# index_media_package_parameters_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (media_package_channel_id => media_package_channels.id) -# fk_rails_... (streaming_id => streamings.id) -# FactoryBot.define do factory :media_package_parameter end diff --git a/spec/factories/media_package_v2_channel_groups.rb b/spec/factories/media_package_v2_channel_groups.rb index 6a1a13a8e..64b411c08 100644 --- a/spec/factories/media_package_v2_channel_groups.rb +++ b/spec/factories/media_package_v2_channel_groups.rb @@ -1,21 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_channel_groups -# -# id :string(255) not null, primary key -# name :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_v2_channel_groups_on_name (name) UNIQUE -# index_media_package_v2_channel_groups_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# - FactoryBot.define do factory :media_package_v2_channel_group, class: MediaPackageV2ChannelGroup end diff --git a/spec/factories/media_package_v2_channels.rb b/spec/factories/media_package_v2_channels.rb index d1e7fc64f..f71339cd5 100644 --- a/spec/factories/media_package_v2_channels.rb +++ b/spec/factories/media_package_v2_channels.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_channels -# -# id :string(255) not null, primary key -# name :string(255) -# media_package_v2_channel_group_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_channels_on_channel_group_id (media_package_v2_channel_group_id) -# index_media_package_v2_channels_on_name (name) UNIQUE -# index_media_package_v2_channels_on_streaming_id (streaming_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# - FactoryBot.define do factory :media_package_v2_channel, class: MediaPackageV2Channel end diff --git a/spec/factories/media_package_v2_origin_endpoints.rb b/spec/factories/media_package_v2_origin_endpoints.rb index 4701f3260..934aa519f 100644 --- a/spec/factories/media_package_v2_origin_endpoints.rb +++ b/spec/factories/media_package_v2_origin_endpoints.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: media_package_v2_origin_endpoints -# -# id :string(255) not null, primary key -# name :string(255) -# media_package_v2_channel_id :string(255) -# streaming_id :string(255) not null -# -# Indexes -# -# index_media_package_v2_origin_endpoints_on_name (name) UNIQUE -# index_media_package_v2_origin_endpoints_on_streaming_id (streaming_id) -# index_origin_endpoints_on_channel_id (media_package_v2_channel_id) -# -# Foreign Keys -# -# fk_rails_... (streaming_id => streamings.id) -# - FactoryBot.define do factory :media_package_v2_origin_endpoint, class: MediaPackageV2OriginEndpoint end diff --git a/spec/factories/profiles.rb b/spec/factories/profiles.rb index 7118ce248..3867eea7c 100644 --- a/spec/factories/profiles.rb +++ b/spec/factories/profiles.rb @@ -1,41 +1,3 @@ -# == Schema Information -# -# Table name: profiles -# -# id :bigint not null, primary key -# calendar_unique_code :string(255) -# company_address :string(255) -# company_address_level1 :string(255) -# company_address_level2 :string(255) -# company_address_line1 :string(255) -# company_address_line2 :string(255) -# company_email :string(255) -# company_fax :string(255) -# company_name :string(255) -# company_postal_code :string(255) -# company_tel :string(255) -# department :string(255) -# email :string(255) -# first_name :string(255) -# first_name_kana :string(255) -# last_name :string(255) -# last_name_kana :string(255) -# occupation :string(255) -# participation :string(255) -# position :string(255) -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# annual_sales_id :integer default(11) -# company_address_prefecture_id :string(255) -# company_name_prefix_id :string(255) -# company_name_suffix_id :string(255) -# conference_id :integer -# industry_id :integer -# number_of_employee_id :integer default(12) -# occupation_id :integer default(34) -# - FactoryBot.define do factory :profile diff --git a/spec/factories/proposal_item_configs.rb b/spec/factories/proposal_item_configs.rb index f8cfc8019..f02148369 100644 --- a/spec/factories/proposal_item_configs.rb +++ b/spec/factories/proposal_item_configs.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: proposal_item_configs -# -# id :bigint not null, primary key -# description :text(65535) -# item_name :string(255) -# item_number :integer -# key :string(255) -# label :string(255) -# params :json -# type :string(255) -# value :string(255) -# conference_id :bigint not null -# -# Indexes -# -# index_proposal_item_configs_on_conference_id (conference_id) -# index_proposal_item_configs_on_conference_id_and_item_number (conference_id,item_number) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :proposal_item_config diff --git a/spec/factories/proposal_items.rb b/spec/factories/proposal_items.rb index f33399b21..2c6ee0b53 100644 --- a/spec/factories/proposal_items.rb +++ b/spec/factories/proposal_items.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: proposal_items -# -# id :bigint not null, primary key -# label :string(255) -# params :json -# conference_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_proposal_items_on_conference_id (conference_id) -# index_proposal_items_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :proposal_item diff --git a/spec/factories/proposals.rb b/spec/factories/proposals.rb index 71a64eb1e..2152acdf9 100644 --- a/spec/factories/proposals.rb +++ b/spec/factories/proposals.rb @@ -1,15 +1,3 @@ -# == Schema Information -# -# Table name: proposals -# -# id :bigint not null, primary key -# status :integer default("registered"), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer not null -# talk_id :integer not null -# - FactoryBot.define do factory :proposal, class: Proposal do trait :with_cndt2021 do diff --git a/spec/factories/public_profiles.rb b/spec/factories/public_profiles.rb index 3d32d04d4..a2aa2a2b7 100644 --- a/spec/factories/public_profiles.rb +++ b/spec/factories/public_profiles.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: public_profiles -# -# id :bigint not null, primary key -# avatar_data :text(65535) -# is_public :boolean default(FALSE) -# nickname :string(255) default("") -# github_id :string(255) default("") -# profile_id :bigint not null -# twitter_id :string(255) default("") -# -# Indexes -# -# index_public_profiles_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (profile_id => profiles.id) -# FactoryBot.define do factory :public_profile end diff --git a/spec/factories/registered_talks.rb b/spec/factories/registered_talks.rb index 91721f3d7..e373371da 100644 --- a/spec/factories/registered_talks.rb +++ b/spec/factories/registered_talks.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: registered_talks -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :integer -# talk_id :integer -# - FactoryBot.define do factory :registered_talk, class: RegisteredTalk end diff --git a/spec/factories/rooms.rb b/spec/factories/rooms.rb index ded8eb812..cce0a6a59 100644 --- a/spec/factories/rooms.rb +++ b/spec/factories/rooms.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: rooms -# -# id :bigint not null, primary key -# description :text(65535) -# name :string(255) not null -# number_of_seats :integer default(0), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_rooms_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# FactoryBot.define do factory :room, class: Room do name { 'ONLINE' } diff --git a/spec/factories/speaker_announcement_middles.rb b/spec/factories/speaker_announcement_middles.rb index 2e0b0b10c..adf47481c 100644 --- a/spec/factories/speaker_announcement_middles.rb +++ b/spec/factories/speaker_announcement_middles.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: speaker_announcement_middles -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# speaker_announcement_id :bigint not null -# speaker_id :bigint not null -# -# Indexes -# -# index_speaker_announcement_middles_on_speaker_announcement_id (speaker_announcement_id) -# index_speaker_announcement_middles_on_speaker_id (speaker_id) -# -# Foreign Keys -# -# fk_rails_... (speaker_announcement_id => speaker_announcements.id) -# fk_rails_... (speaker_id => speakers.id) -# FactoryBot.define do factory :speaker_announcement_middle end diff --git a/spec/factories/speaker_announcements.rb b/spec/factories/speaker_announcements.rb index a9ccb9e9a..b52b5a8d4 100644 --- a/spec/factories/speaker_announcements.rb +++ b/spec/factories/speaker_announcements.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: speaker_announcements -# -# id :bigint not null, primary key -# body :text(65535) not null -# publish :boolean default(FALSE) -# publish_time :datetime not null -# receiver :integer default("person"), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_speaker_announcements_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :speaker_announcement do conference_id { 1 } diff --git a/spec/factories/speaker_invitation_accepts.rb b/spec/factories/speaker_invitation_accepts.rb index 3fa3fa7a4..e06b03279 100644 --- a/spec/factories/speaker_invitation_accepts.rb +++ b/spec/factories/speaker_invitation_accepts.rb @@ -1,30 +1,3 @@ -# == Schema Information -# -# Table name: speaker_invitation_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# speaker_id :bigint not null -# speaker_invitation_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_speaker_invitation_accepts_on_conference_id (conference_id) -# index_speaker_invitation_accepts_on_conference_speaker_talk (conference_id,speaker_id,talk_id) UNIQUE -# index_speaker_invitation_accepts_on_speaker_id (speaker_id) -# index_speaker_invitation_accepts_on_speaker_invitation_id (speaker_invitation_id) -# index_speaker_invitation_accepts_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (speaker_id => speakers.id) -# fk_rails_... (speaker_invitation_id => speaker_invitations.id) -# fk_rails_... (talk_id => talks.id) -# FactoryBot.define do factory :speaker_invitation_accept do speaker_invitation { nil } diff --git a/spec/factories/speaker_invitations.rb b/spec/factories/speaker_invitations.rb index e382573e5..340641c6c 100644 --- a/spec/factories/speaker_invitations.rb +++ b/spec/factories/speaker_invitations.rb @@ -1,26 +1,3 @@ -# == Schema Information -# -# Table name: speaker_invitations -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# talk_id :bigint not null -# -# Indexes -# -# index_speaker_invitations_on_conference_id (conference_id) -# index_speaker_invitations_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (talk_id => talks.id) -# FactoryBot.define do factory :speaker_invitation do email { 'MyString' } diff --git a/spec/factories/speakers.rb b/spec/factories/speakers.rb index 1a0dff6bc..d47aa59c0 100644 --- a/spec/factories/speakers.rb +++ b/spec/factories/speakers.rb @@ -1,29 +1,3 @@ -# == Schema Information -# -# Table name: speakers -# -# id :bigint not null, primary key -# additional_documents :text(65535) -# avatar_data :text(65535) -# company :string(255) -# email :text(65535) -# job_title :string(255) -# name :string(255) -# name_mother_tongue :string(255) -# profile :text(65535) -# sub :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# github_id :string(255) -# sponsor_id :bigint -# twitter_id :string(255) -# -# Indexes -# -# index_speakers_on_conference_id_and_email (conference_id,email) -# - FactoryBot.define do factory :speaker diff --git a/spec/factories/sponsor_attachments.rb b/spec/factories/sponsor_attachments.rb index f5d1c4d37..8c7ad59f2 100644 --- a/spec/factories/sponsor_attachments.rb +++ b/spec/factories/sponsor_attachments.rb @@ -1,28 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_attachments -# -# id :bigint not null, primary key -# file_data :string(255) -# link :string(255) -# public :boolean -# text :text(65535) -# title :string(255) -# type :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_attachments_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (sponsor_id => sponsors.id) -# - FactoryBot.define do factory :sponsor_attachment do sponsor { nil } diff --git a/spec/factories/sponsor_contact_invite_accepts.rb b/spec/factories/sponsor_contact_invite_accepts.rb index 62cb0c109..433bf5b39 100644 --- a/spec/factories/sponsor_contact_invite_accepts.rb +++ b/spec/factories/sponsor_contact_invite_accepts.rb @@ -1,30 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contact_invite_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_contact_id :bigint not null -# sponsor_contact_invite_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contact_invite_accepts_on_conference_id (conference_id) -# index_sponsor_contact_invite_accepts_on_invitation_id (sponsor_contact_invite_id) -# index_sponsor_contact_invite_accepts_on_sponsor_contact_id (sponsor_contact_id) -# index_sponsor_contact_invite_accepts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_contact_id => sponsor_contacts.id) -# fk_rails_... (sponsor_contact_invite_id => sponsor_contact_invites.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - FactoryBot.define do factory :sponsor_contact_invite_accept do conference diff --git a/spec/factories/sponsor_contact_invites.rb b/spec/factories/sponsor_contact_invites.rb index 43c2240f3..7b0179957 100644 --- a/spec/factories/sponsor_contact_invites.rb +++ b/spec/factories/sponsor_contact_invites.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contact_invites -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contact_invites_on_conference_id (conference_id) -# index_sponsor_contact_invites_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - FactoryBot.define do factory :sponsor_contact_invite do email { 'contact@example.com' } diff --git a/spec/factories/sponsor_contacts.rb b/spec/factories/sponsor_contacts.rb index 05a190011..5b83c51da 100644 --- a/spec/factories/sponsor_contacts.rb +++ b/spec/factories/sponsor_contacts.rb @@ -1,26 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_contacts -# -# id :bigint not null, primary key -# email :string(255) -# name :string(255) -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_contacts_on_conference_id (conference_id) -# index_sponsor_contacts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :sponsor_contact diff --git a/spec/factories/sponsor_speaker_invite_accepts.rb b/spec/factories/sponsor_speaker_invite_accepts.rb index 96c92dd9a..ced24a90a 100644 --- a/spec/factories/sponsor_speaker_invite_accepts.rb +++ b/spec/factories/sponsor_speaker_invite_accepts.rb @@ -1,34 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_speaker_invite_accepts -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# speaker_id :bigint not null -# sponsor_contact_id :bigint not null -# sponsor_id :bigint not null -# sponsor_speaker_invite_id :bigint not null -# -# Indexes -# -# idx_spk_inv_accepts_on_conf_spsr_speaker_contact (conference_id,sponsor_id,speaker_id,sponsor_contact_id) UNIQUE -# idx_spk_inv_accepts_on_invite (sponsor_speaker_invite_id) -# index_sponsor_speaker_invite_accepts_on_conference_id (conference_id) -# index_sponsor_speaker_invite_accepts_on_speaker_id (speaker_id) -# index_sponsor_speaker_invite_accepts_on_sponsor_contact_id (sponsor_contact_id) -# index_sponsor_speaker_invite_accepts_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (speaker_id => speakers.id) -# fk_rails_... (sponsor_contact_id => sponsor_contacts.id) -# fk_rails_... (sponsor_id => sponsors.id) -# fk_rails_... (sponsor_speaker_invite_id => sponsor_speaker_invites.id) -# - FactoryBot.define do factory :sponsor_speaker_invite_accept do conference diff --git a/spec/factories/sponsor_speaker_invites.rb b/spec/factories/sponsor_speaker_invites.rb index c6988c0df..6d005b39a 100644 --- a/spec/factories/sponsor_speaker_invites.rb +++ b/spec/factories/sponsor_speaker_invites.rb @@ -1,27 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_speaker_invites -# -# id :bigint not null, primary key -# email :string(255) not null -# expires_at :datetime not null -# token :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# sponsor_id :bigint not null -# -# Indexes -# -# index_sponsor_speaker_invites_on_conference_id (conference_id) -# index_sponsor_speaker_invites_on_sponsor_id (sponsor_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (sponsor_id => sponsors.id) -# - FactoryBot.define do factory :sponsor_speaker_invite do email { 'speaker@example.com' } diff --git a/spec/factories/sponsor_types.rb b/spec/factories/sponsor_types.rb index d4b9720c2..c05002033 100644 --- a/spec/factories/sponsor_types.rb +++ b/spec/factories/sponsor_types.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: sponsor_types -# -# id :bigint not null, primary key -# name :string(255) -# order :integer -# visible :boolean default(TRUE) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_sponsor_types_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :sponsor_type do conference { nil } diff --git a/spec/factories/sponsors.rb b/spec/factories/sponsors.rb index 58e43117b..e2f7598bd 100644 --- a/spec/factories/sponsors.rb +++ b/spec/factories/sponsors.rb @@ -1,25 +1,3 @@ -# == Schema Information -# -# Table name: sponsors -# -# id :bigint not null, primary key -# abbr :string(255) -# description :text(65535) -# name :string(255) -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_sponsors_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :sponsor do id { 1 } diff --git a/spec/factories/sponsors_sponsor_types.rb b/spec/factories/sponsors_sponsor_types.rb index 2e507c330..7b81494e8 100644 --- a/spec/factories/sponsors_sponsor_types.rb +++ b/spec/factories/sponsors_sponsor_types.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: sponsors_sponsor_types -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# sponsor_id :integer -# sponsor_type_id :integer -# - FactoryBot.define do factory :sponsors_sponsor_type do end diff --git a/spec/factories/stamp_rally_check_ins.rb b/spec/factories/stamp_rally_check_ins.rb index e77807087..eb569b46f 100644 --- a/spec/factories/stamp_rally_check_ins.rb +++ b/spec/factories/stamp_rally_check_ins.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: stamp_rally_check_ins -# -# id :string(26) not null, primary key -# check_in_timestamp :datetime not null -# profile_id :bigint not null -# stamp_rally_check_point_id :string(26) not null -# -# Indexes -# -# index_stamp_rally_check_ins_on_profile_id (profile_id) -# index_stamp_rally_check_ins_on_stamp_rally_check_point_id (stamp_rally_check_point_id) -# -# Foreign Keys -# -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (stamp_rally_check_point_id => stamp_rally_check_points.id) -# - FactoryBot.define do factory :stamp_rally_check_in, class: StampRallyCheckIn do end diff --git a/spec/factories/stats_of_registrants.rb b/spec/factories/stats_of_registrants.rb index 867df2f51..f6d75c390 100644 --- a/spec/factories/stats_of_registrants.rb +++ b/spec/factories/stats_of_registrants.rb @@ -1,19 +1,3 @@ -# == Schema Information -# -# Table name: stats_of_registrants -# -# id :bigint not null, primary key -# number_of_registrants :integer -# offline_attendees :decimal(10, ) -# online_attendees :decimal(10, ) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint -# -# Indexes -# -# index_stats_of_registrants_on_conference_id (conference_id) -# FactoryBot.define do factory :stats_of_registrant end diff --git a/spec/factories/streamings.rb b/spec/factories/streamings.rb index eb0c39330..5d2909b8c 100644 --- a/spec/factories/streamings.rb +++ b/spec/factories/streamings.rb @@ -1,27 +1,3 @@ -# == Schema Information -# -# Table name: streamings -# -# id :string(255) not null, primary key -# error_cause :text(65535) -# status :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# track_id :bigint not null -# -# Indexes -# -# index_streamings_on_conference_id (conference_id) -# index_streamings_on_conference_id_and_track_id (conference_id,track_id) UNIQUE -# index_streamings_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (track_id => tracks.id) -# - FactoryBot.define do factory :streaming, class: Streaming end diff --git a/spec/factories/talk_categories.rb b/spec/factories/talk_categories.rb index 28a348168..9096965df 100644 --- a/spec/factories/talk_categories.rb +++ b/spec/factories/talk_categories.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: talk_categories -# -# id :bigint not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# -# Indexes -# -# index_talk_categories_on_conference_id (conference_id) -# - FactoryBot.define do factory :talk_category diff --git a/spec/factories/talk_difficulties.rb b/spec/factories/talk_difficulties.rb index 775c94e24..6f5fb5057 100644 --- a/spec/factories/talk_difficulties.rb +++ b/spec/factories/talk_difficulties.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: talk_difficulties -# -# id :bigint not null, primary key -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# -# Indexes -# -# index_talk_difficulties_on_conference_id (conference_id) -# - FactoryBot.define do factory :talk_difficulty diff --git a/spec/factories/talk_times.rb b/spec/factories/talk_times.rb index 23c3336b2..c315c3865 100644 --- a/spec/factories/talk_times.rb +++ b/spec/factories/talk_times.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: talk_times -# -# id :bigint not null, primary key -# time_minutes :integer -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_talk_times_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# - FactoryBot.define do factory :talk_time do conference { nil } diff --git a/spec/factories/talk_types.rb b/spec/factories/talk_types.rb index c8521d669..691266a3e 100644 --- a/spec/factories/talk_types.rb +++ b/spec/factories/talk_types.rb @@ -1,11 +1,3 @@ -# == Schema Information -# -# Table name: talk_types -# -# id :string(255) not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# FactoryBot.define do factory :talk_type, class: Talk::Type do initialize_with { Talk::Type.find_or_initialize_by(id:) } diff --git a/spec/factories/talks.rb b/spec/factories/talks.rb index 353031cda..daa20b29f 100644 --- a/spec/factories/talks.rb +++ b/spec/factories/talks.rb @@ -1,46 +1,3 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# - FactoryBot.define do factory :talk diff --git a/spec/factories/talks_speakers.rb b/spec/factories/talks_speakers.rb index dc0d228ac..25a1cbf4e 100644 --- a/spec/factories/talks_speakers.rb +++ b/spec/factories/talks_speakers.rb @@ -1,17 +1,3 @@ -# == Schema Information -# -# Table name: talks_speakers -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# speaker_id :integer -# talk_id :integer -# -# Indexes -# -# index_talks_speakers_on_speaker_id (speaker_id) -# FactoryBot.define do factory :talks_speaker end diff --git a/spec/factories/tracks.rb b/spec/factories/tracks.rb index f96de8728..4e954645b 100644 --- a/spec/factories/tracks.rb +++ b/spec/factories/tracks.rb @@ -1,22 +1,3 @@ -# == Schema Information -# -# Table name: tracks -# -# id :bigint not null, primary key -# name :string(255) -# number :integer -# video_platform :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# room_id :bigint default(0) -# video_id :string(255) -# -# Indexes -# -# index_tracks_on_conference_id (conference_id) -# - FactoryBot.define do factory :track, class: Track do video_platform { 'vimeo' } diff --git a/spec/factories/video_registrations.rb b/spec/factories/video_registrations.rb index 9c39d722d..b7b5ddadb 100644 --- a/spec/factories/video_registrations.rb +++ b/spec/factories/video_registrations.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: video_registrations -# -# id :bigint not null, primary key -# statistics :json not null -# status :integer default("unsubmitted"), not null -# url :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# talk_id :bigint not null -# -# Indexes -# -# index_video_registrations_on_talk_id (talk_id) -# -# Foreign Keys -# -# fk_rails_... (talk_id => talks.id) -# - FactoryBot.define do factory :video_registration do id { 1 } diff --git a/spec/factories/videos.rb b/spec/factories/videos.rb index 6a334d5bf..956218284 100644 --- a/spec/factories/videos.rb +++ b/spec/factories/videos.rb @@ -1,18 +1,3 @@ -# == Schema Information -# -# Table name: videos -# -# id :bigint not null, primary key -# on_air :boolean -# site :string(255) -# url :string(255) -# video_file_data :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# talk_id :integer -# video_id :string(255) -# - FactoryBot.define do factory :video do talk_id { 1 } diff --git a/spec/factories/viewer_counts.rb b/spec/factories/viewer_counts.rb index d20d6e022..0531a67c6 100644 --- a/spec/factories/viewer_counts.rb +++ b/spec/factories/viewer_counts.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: viewer_counts -# -# id :bigint not null, primary key -# count :integer -# stream_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# talk_id :integer -# track_id :integer -# -# Indexes -# -# index_viewer_counts_on_conference_id (conference_id) -# index_viewer_counts_on_talk_id (talk_id) -# index_viewer_counts_on_track_id (track_id) -# - FactoryBot.define do factory :cndt2021_viewer_count, class: ViewerCount do conference_id { 4 } diff --git a/spec/models/chat_message_spec.rb b/spec/models/chat_message_spec.rb index 03fc63b09..bc9e54e8e 100644 --- a/spec/models/chat_message_spec.rb +++ b/spec/models/chat_message_spec.rb @@ -1,39 +1,3 @@ -# == Schema Information -# -# Table name: chat_messages -# -# id :bigint not null, primary key -# body :text(65535) -# children_count :integer default(0), not null -# depth :integer default(0), not null -# lft :integer not null -# message_type :integer -# rgt :integer not null -# room_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# parent_id :integer -# profile_id :bigint -# room_id :bigint -# speaker_id :bigint -# -# Indexes -# -# index_chat_messages_on_conference_id (conference_id) -# index_chat_messages_on_lft (lft) -# index_chat_messages_on_parent_id (parent_id) -# index_chat_messages_on_profile_id (profile_id) -# index_chat_messages_on_rgt (rgt) -# index_chat_messages_on_speaker_id (speaker_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# fk_rails_... (profile_id => profiles.id) -# fk_rails_... (speaker_id => speakers.id) -# - require 'rails_helper' RSpec.describe(ChatMessage, type: :model) do diff --git a/spec/models/conference_spec.rb b/spec/models/conference_spec.rb index 87bdd8c8a..a1d0aa666 100644 --- a/spec/models/conference_spec.rb +++ b/spec/models/conference_spec.rb @@ -1,37 +1,3 @@ -# == Schema Information -# -# Table name: conferences -# -# id :bigint not null, primary key -# abbr :string(255) -# about :text(65535) -# attendee_entry :integer default("attendee_entry_disabled") -# brief :string(255) -# capacity :integer -# cfp_result_visible :boolean default(FALSE) -# coc :text(65535) -# committee_name :string(255) default("CloudNative Days Committee"), not null -# conference_status :string(255) default("registered") -# contact_url :text(65535) -# copyright :string(255) -# name :string(255) -# privacy_policy :text(65535) -# privacy_policy_for_speaker :text(65535) -# rehearsal_mode :boolean default(FALSE), not null -# show_sponsors :boolean default(FALSE) -# show_timetable :integer default("show_timetable_disabled") -# speaker_entry :integer default("speaker_entry_disabled") -# sponsor_guideline_url :text(65535) -# theme :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# -# Indexes -# -# index_conferences_on_abbr (abbr) -# index_conferences_on_abbr_and_conference_status (abbr,conference_status) -# - require 'rails_helper' RSpec.describe(Conference, type: :model) do diff --git a/spec/models/form_item_spec.rb b/spec/models/form_item_spec.rb index b6d50da9e..5625ff3de 100644 --- a/spec/models/form_item_spec.rb +++ b/spec/models/form_item_spec.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: form_items -# -# id :bigint not null, primary key -# attr :string(255) -# name :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# require 'rails_helper' RSpec.describe(FormItem, type: :model) do diff --git a/spec/models/form_value_spec.rb b/spec/models/form_value_spec.rb index 1d31e1625..91837193a 100644 --- a/spec/models/form_value_spec.rb +++ b/spec/models/form_value_spec.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: form_values -# -# id :bigint not null, primary key -# value :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# form_item_id :bigint not null -# profile_id :bigint not null -# -# Indexes -# -# index_form_values_on_form_item_id (form_item_id) -# index_form_values_on_profile_id (profile_id) -# -# Foreign Keys -# -# fk_rails_... (form_item_id => form_items.id) -# fk_rails_... (profile_id => profiles.id) -# require 'rails_helper' RSpec.describe(FormValue, type: :model) do diff --git a/spec/models/profile_spec.rb b/spec/models/profile_spec.rb index 687c03887..e8a848430 100644 --- a/spec/models/profile_spec.rb +++ b/spec/models/profile_spec.rb @@ -1,41 +1,3 @@ -# == Schema Information -# -# Table name: profiles -# -# id :bigint not null, primary key -# calendar_unique_code :string(255) -# company_address :string(255) -# company_address_level1 :string(255) -# company_address_level2 :string(255) -# company_address_line1 :string(255) -# company_address_line2 :string(255) -# company_email :string(255) -# company_fax :string(255) -# company_name :string(255) -# company_postal_code :string(255) -# company_tel :string(255) -# department :string(255) -# email :string(255) -# first_name :string(255) -# first_name_kana :string(255) -# last_name :string(255) -# last_name_kana :string(255) -# occupation :string(255) -# participation :string(255) -# position :string(255) -# sub :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# annual_sales_id :integer default(11) -# company_address_prefecture_id :string(255) -# company_name_prefix_id :string(255) -# company_name_suffix_id :string(255) -# conference_id :integer -# industry_id :integer -# number_of_employee_id :integer default(12) -# occupation_id :integer default(34) -# - require 'rails_helper' RSpec.describe(Profile, type: :model) do diff --git a/spec/models/registered_talk_spec.rb b/spec/models/registered_talk_spec.rb index b03e5d4b8..bbfdc29e2 100644 --- a/spec/models/registered_talk_spec.rb +++ b/spec/models/registered_talk_spec.rb @@ -1,14 +1,3 @@ -# == Schema Information -# -# Table name: registered_talks -# -# id :bigint not null, primary key -# created_at :datetime not null -# updated_at :datetime not null -# profile_id :integer -# talk_id :integer -# - require 'rails_helper' RSpec.describe(RegisteredTalk, type: :model) do diff --git a/spec/models/speaker_announcement_spec.rb b/spec/models/speaker_announcement_spec.rb index b40ae0cee..6965a06d8 100644 --- a/spec/models/speaker_announcement_spec.rb +++ b/spec/models/speaker_announcement_spec.rb @@ -1,24 +1,3 @@ -# == Schema Information -# -# Table name: speaker_announcements -# -# id :bigint not null, primary key -# body :text(65535) not null -# publish :boolean default(FALSE) -# publish_time :datetime not null -# receiver :integer default("person"), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :bigint not null -# -# Indexes -# -# index_speaker_announcements_on_conference_id (conference_id) -# -# Foreign Keys -# -# fk_rails_... (conference_id => conferences.id) -# require 'rails_helper' RSpec.describe(SpeakerAnnouncement, type: :model) do diff --git a/spec/models/speaker_spec.rb b/spec/models/speaker_spec.rb index 279a7c704..e492b6d1a 100644 --- a/spec/models/speaker_spec.rb +++ b/spec/models/speaker_spec.rb @@ -1,29 +1,3 @@ -# == Schema Information -# -# Table name: speakers -# -# id :bigint not null, primary key -# additional_documents :text(65535) -# avatar_data :text(65535) -# company :string(255) -# email :text(65535) -# job_title :string(255) -# name :string(255) -# name_mother_tongue :string(255) -# profile :text(65535) -# sub :text(65535) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# github_id :string(255) -# sponsor_id :bigint -# twitter_id :string(255) -# -# Indexes -# -# index_speakers_on_conference_id_and_email (conference_id,email) -# - require 'rails_helper' RSpec.describe(Speaker, type: :model) do diff --git a/spec/models/talk_spec.rb b/spec/models/talk_spec.rb index f63821351..df6a5dccb 100644 --- a/spec/models/talk_spec.rb +++ b/spec/models/talk_spec.rb @@ -1,46 +1,3 @@ -# == Schema Information -# -# Table name: talks -# -# id :bigint not null, primary key -# abstract :text(65535) -# acquired_seats :integer default(0), not null -# document_url :string(255) -# end_offset :integer default(0), not null -# end_time :time -# execution_phases :json -# expected_participants :json -# movie_url :string(255) -# number_of_seats :integer default(0), not null -# show_on_timetable :boolean -# start_offset :integer default(0), not null -# start_time :time -# title :string(255) -# type :string(255) not null -# video_published :boolean default(FALSE), not null -# created_at :datetime not null -# updated_at :datetime not null -# conference_day_id :integer -# conference_id :integer -# sponsor_id :integer -# talk_category_id :bigint -# talk_difficulty_id :bigint -# talk_time_id :integer -# track_id :integer -# -# Indexes -# -# fk_rails_9c6f538eea (type) -# index_talks_on_conference_id (conference_id) -# index_talks_on_talk_category_id (talk_category_id) -# index_talks_on_talk_difficulty_id (talk_difficulty_id) -# index_talks_on_track_id (track_id) -# -# Foreign Keys -# -# fk_rails_... (type => talk_types.id) -# - require 'rails_helper' describe Talk, type: :model do diff --git a/spec/models/viewer_count_spec.rb b/spec/models/viewer_count_spec.rb index 5253acb67..1bf8dfe8d 100644 --- a/spec/models/viewer_count_spec.rb +++ b/spec/models/viewer_count_spec.rb @@ -1,23 +1,3 @@ -# == Schema Information -# -# Table name: viewer_counts -# -# id :bigint not null, primary key -# count :integer -# stream_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# conference_id :integer -# talk_id :integer -# track_id :integer -# -# Indexes -# -# index_viewer_counts_on_conference_id (conference_id) -# index_viewer_counts_on_talk_id (talk_id) -# index_viewer_counts_on_track_id (track_id) -# - require 'rails_helper' RSpec.describe(ViewerCount, type: :model) do