Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
25 changes: 0 additions & 25 deletions app/models/admin_profile.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
19 changes: 0 additions & 19 deletions app/models/announcement.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
36 changes: 0 additions & 36 deletions app/models/chat_message.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 0 additions & 13 deletions app/models/check_in.rb
Original file line number Diff line number Diff line change
@@ -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
22 changes: 0 additions & 22 deletions app/models/check_in_conference.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 0 additions & 22 deletions app/models/check_in_talk.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
34 changes: 0 additions & 34 deletions app/models/conference.rb
Original file line number Diff line number Diff line change
@@ -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日目が始まるまで
Expand Down
18 changes: 0 additions & 18 deletions app/models/conference_day.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 0 additions & 12 deletions app/models/form_item.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
21 changes: 0 additions & 21 deletions app/models/form_value.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
42 changes: 0 additions & 42 deletions app/models/intermission.rb
Original file line number Diff line number Diff line change
@@ -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
42 changes: 0 additions & 42 deletions app/models/keynote_session.rb
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading