Run annotate_models

This commit is contained in:
Michael Ball 2021-02-20 09:57:27 -08:00
parent 55e853d31d
commit d7e24f6521
124 changed files with 2192 additions and 19 deletions

View file

@ -1,5 +1,14 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: answers
#
# id :bigint not null, primary key
# title :string
# created_at :datetime
# updated_at :datetime
#
class Answer < ApplicationRecord
has_many :qanswers
has_many :questions, through: :qanswers

View file

@ -1,5 +1,21 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: booths
#
# id :bigint not null, primary key
# description :text
# logo_link :string
# reasoning :text
# state :string
# submitter_relationship :text
# title :string
# website_url :string
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer
#
class Booth < ApplicationRecord
include ActiveRecord::Transitions
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }

View file

@ -1,5 +1,21 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: booth_requests
#
# id :bigint not null, primary key
# role :string
# created_at :datetime not null
# updated_at :datetime not null
# booth_id :integer
# user_id :integer
#
# Indexes
#
# index_booth_requests_on_booth_id (booth_id)
# index_booth_requests_on_user_id (user_id)
#
class BoothRequest < ApplicationRecord
belongs_to :booth
belongs_to :user

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: cfps
#
# id :bigint not null, primary key
# cfp_type :string
# description :text
# enable_registrations :boolean default(FALSE)
# end_date :date not null
# start_date :date not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
# cannot delete program if there are events submitted
class Cfp < ApplicationRecord

View file

@ -1,5 +1,28 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: comments
#
# id :bigint not null, primary key
# body :text
# commentable_type :string
# lft :integer
# rgt :integer
# subject :string
# title :string(50) default("")
# created_at :datetime
# updated_at :datetime
# commentable_id :integer
# parent_id :integer
# user_id :integer
#
# Indexes
#
# index_comments_on_commentable_id (commentable_id)
# index_comments_on_commentable_type (commentable_type)
# index_comments_on_user_id (user_id)
#
class Comment < ApplicationRecord
acts_as_nested_set scope: %i(commentable_id commentable_type)
validates :body, presence: true

View file

@ -1,5 +1,18 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: commercials
#
# id :bigint not null, primary key
# commercial_type :string
# commercialable_type :string
# url :string
# created_at :datetime
# updated_at :datetime
# commercial_id :string
# commercialable_id :integer
#
class Commercial < ApplicationRecord
require 'oembed'

View file

@ -1,5 +1,40 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: conferences
#
# id :bigint not null, primary key
# booth_limit :integer default(0)
# color :string
# custom_css :text
# custom_domain :string
# description :text
# end_date :date not null
# end_hour :integer default(20)
# events_per_week :text
# guid :string not null
# logo_file_name :string
# picture :string
# registration_limit :integer default(0)
# revision :integer default(0), not null
# short_title :string not null
# start_date :date not null
# start_hour :integer default(9)
# ticket_layout :integer default("portrait")
# timezone :string not null
# title :string not null
# use_vdays :boolean default(FALSE)
# use_volunteers :boolean
# use_vpositions :boolean default(FALSE)
# created_at :datetime
# updated_at :datetime
# organization_id :integer
#
# Indexes
#
# index_conferences_on_organization_id (organization_id)
#
class Conference < ApplicationRecord
include RevisionCount
require 'uri'

View file

@ -1,5 +1,24 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: contacts
#
# id :bigint not null, primary key
# blog :string
# email :string
# facebook :string
# googleplus :string
# instagram :string
# mastodon :string
# social_tag :string
# sponsor_email :string
# twitter :string
# youtube :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Contact < ApplicationRecord
has_paper_trail on: [:update], ignore: [:updated_at], meta: { conference_id: :conference_id }

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: difficulty_levels
#
# id :bigint not null, primary key
# color :string
# description :text
# title :string
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
class DifficultyLevel < ApplicationRecord
belongs_to :program, touch: true
has_many :events, dependent: :nullify

View file

@ -1,5 +1,50 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: email_settings
#
# id :bigint not null, primary key
# accepted_body :text
# accepted_subject :string
# booths_acceptance_body :text
# booths_acceptance_subject :string
# booths_rejection_body :text
# booths_rejection_subject :string
# cfp_dates_updated_body :text
# cfp_dates_updated_subject :string
# conference_dates_updated_body :text
# conference_dates_updated_subject :string
# conference_registration_dates_updated_body :text
# conference_registration_dates_updated_subject :string
# confirmed_without_registration_body :text
# confirmed_without_registration_subject :string
# program_schedule_public_body :text
# program_schedule_public_subject :string
# registration_body :text
# registration_subject :string
# rejected_body :text
# rejected_subject :string
# send_on_accepted :boolean default(FALSE)
# send_on_booths_acceptance :boolean default(FALSE)
# send_on_booths_rejection :boolean default(FALSE)
# send_on_cfp_dates_updated :boolean default(FALSE)
# send_on_conference_dates_updated :boolean default(FALSE)
# send_on_conference_registration_dates_updated :boolean default(FALSE)
# send_on_confirmed_without_registration :boolean default(FALSE)
# send_on_program_schedule_public :boolean default(FALSE)
# send_on_registration :boolean default(FALSE)
# send_on_rejected :boolean default(FALSE)
# send_on_submitted_proposal :boolean default(FALSE)
# send_on_venue_updated :boolean default(FALSE)
# submitted_proposal_body :text
# submitted_proposal_subject :string
# venue_updated_body :text
# venue_updated_subject :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class EmailSettings < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,34 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# abstract :text
# comments_count :integer default(0), not null
# description :text
# guid :string not null
# is_highlight :boolean default(FALSE)
# language :string
# max_attendees :integer
# progress :string default("new"), not null
# proposal_additional_speakers :text
# public :boolean default(TRUE)
# require_registration :boolean
# start_time :datetime
# state :string default("new"), not null
# subtitle :string
# title :string not null
# week :integer
# created_at :datetime
# updated_at :datetime
# difficulty_level_id :integer
# event_type_id :integer
# program_id :integer
# room_id :integer
# track_id :integer
#
class Event < ApplicationRecord
include ActiveRecord::Transitions
include RevisionCount

View file

@ -1,5 +1,25 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_schedules
#
# id :bigint not null, primary key
# enabled :boolean default(TRUE)
# start_time :datetime
# created_at :datetime not null
# updated_at :datetime not null
# event_id :integer
# room_id :integer
# schedule_id :integer
#
# Indexes
#
# index_event_schedules_on_event_id (event_id)
# index_event_schedules_on_event_id_and_schedule_id (event_id,schedule_id) UNIQUE
# index_event_schedules_on_room_id (room_id)
# index_event_schedules_on_schedule_id (schedule_id)
#
class EventSchedule < ApplicationRecord
default_scope { where(enabled: true) }
belongs_to :schedule

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_types
#
# id :bigint not null, primary key
# color :string
# description :string
# length :integer default(30)
# maximum_abstract_length :integer default(500)
# minimum_abstract_length :integer default(0)
# title :string not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
class EventType < ApplicationRecord
belongs_to :program, touch: true
has_many :events, dependent: :restrict_with_error

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_users
#
# id :bigint not null, primary key
# comment :string
# event_role :string default("participant"), not null
# created_at :datetime
# updated_at :datetime
# event_id :integer
# user_id :integer
#
class EventUser < ApplicationRecord
ROLES = [%w[Speaker speaker], %w[Submitter submitter], %w[Moderator moderator],
%w[Volunteer volunteer]]

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: events_registrations
#
# id :bigint not null, primary key
# attended :boolean default(FALSE), not null
# created_at :datetime
# event_id :integer
# registration_id :integer
#
class EventsRegistration < ApplicationRecord
belongs_to :registration
belongs_to :event

View file

@ -1,5 +1,22 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: lodgings
#
# id :bigint not null, primary key
# description :text
# name :string
# photo_content_type :string
# photo_file_name :string
# photo_file_size :integer
# photo_updated_at :datetime
# picture :string
# website_link :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Lodging < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: openids
#
# id :bigint not null, primary key
# email :string
# provider :string
# uid :string
# created_at :datetime
# updated_at :datetime
# user_id :integer
#
class Openid < ApplicationRecord
belongs_to :user
validates :provider, :uid, :email, presence: true

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: organizations
#
# id :bigint not null, primary key
# code_of_conduct :text
# description :text
# name :string not null
# picture :string
#
class Organization < ApplicationRecord
resourcify :roles, dependent: :delete_all

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: payments
#
# id :bigint not null, primary key
# amount :integer
# authorization_code :string
# last4 :string
# status :integer default("unpaid"), not null
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer not null
# user_id :integer not null
#
class Payment < ApplicationRecord
has_many :ticket_purchases
belongs_to :user

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: physical_tickets
#
# id :bigint not null, primary key
# token :string
# created_at :datetime not null
# updated_at :datetime not null
# ticket_purchase_id :integer not null
#
# Indexes
#
# index_physical_tickets_on_token (token) UNIQUE
#
class PhysicalTicket < ApplicationRecord
belongs_to :ticket_purchase
has_one :ticket, through: :ticket_purchase

View file

@ -1,5 +1,27 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: programs
#
# id :bigint not null, primary key
# blind_voting :boolean default(FALSE)
# languages :string
# rating :integer default(0)
# schedule_fluid :boolean default(FALSE)
# schedule_interval :integer default(15), not null
# schedule_public :boolean default(FALSE)
# voting_end_date :datetime
# voting_start_date :datetime
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# selected_schedule_id :integer
#
# Indexes
#
# index_programs_on_selected_schedule_id (selected_schedule_id)
#
# cannot delete program if there are events submitted
class Program < ApplicationRecord

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: qanswers
#
# id :bigint not null, primary key
# created_at :datetime
# updated_at :datetime
# answer_id :integer
# question_id :integer
#
class Qanswer < ApplicationRecord
belongs_to :question
belongs_to :answer, dependent: :delete

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: questions
#
# id :bigint not null, primary key
# global :boolean
# title :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# question_type_id :integer
#
class Question < ApplicationRecord
belongs_to :question_type
has_and_belongs_to_many :conferences

View file

@ -1,5 +1,14 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: question_types
#
# id :bigint not null, primary key
# title :string
# created_at :datetime
# updated_at :datetime
#
class QuestionType < ApplicationRecord
has_many :questions
end

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: registrations
#
# id :bigint not null, primary key
# accepted_code_of_conduct :boolean
# attended :boolean default(FALSE)
# other_special_needs :text
# volunteer :boolean
# week :integer
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# user_id :integer
#
class Registration < ApplicationRecord
require 'csv'
belongs_to :user

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: registration_periods
#
# id :bigint not null, primary key
# end_date :date
# start_date :date
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class RegistrationPeriod < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: resources
#
# id :bigint not null, primary key
# description :text
# name :string
# quantity :integer
# used :integer default(0)
# conference_id :integer
#
class Resource < ApplicationRecord
belongs_to :conference
validates :name, :used, :quantity, presence: true

View file

@ -1,5 +1,22 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: roles
#
# id :bigint not null, primary key
# description :string
# name :string
# resource_type :string
# created_at :datetime
# updated_at :datetime
# resource_id :integer
#
# Indexes
#
# index_roles_on_name (name)
# index_roles_on_name_and_resource_type_and_resource_id (name,resource_type,resource_id)
#
class Role < ApplicationRecord
belongs_to :resource, polymorphic: true
has_many :users_roles

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: rooms
#
# id :bigint not null, primary key
# guid :string not null
# name :string not null
# order :integer
# size :integer
# url :string
# venue_id :integer not null
#
class Room < ApplicationRecord
include RevisionCount
belongs_to :venue

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: schedules
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# program_id :integer
# track_id :integer
#
# Indexes
#
# index_schedules_on_program_id (program_id)
# index_schedules_on_track_id (track_id)
#
class Schedule < ApplicationRecord
belongs_to :program
belongs_to :track

View file

@ -1,5 +1,30 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: splashpages
#
# id :bigint not null, primary key
# banner_photo_content_type :string
# banner_photo_file_name :string
# banner_photo_file_size :integer
# banner_photo_updated_at :datetime
# include_booths :boolean
# include_cfp :boolean default(FALSE)
# include_lodgings :boolean
# include_program :boolean
# include_registrations :boolean
# include_social_media :boolean
# include_sponsors :boolean
# include_tickets :boolean
# include_tracks :boolean
# include_venue :boolean
# public :boolean
# shuffle_highlights :boolean default(FALSE), not null
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Splashpage < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: sponsors
#
# id :bigint not null, primary key
# description :text
# logo_file_name :string
# name :string
# picture :string
# website_url :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# sponsorship_level_id :integer
#
class Sponsor < ApplicationRecord
belongs_to :sponsorship_level
belongs_to :conference

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: sponsorship_levels
#
# id :bigint not null, primary key
# position :integer
# title :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class SponsorshipLevel < ApplicationRecord
validates :title, presence: true
belongs_to :conference

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: subscriptions
#
# id :bigint not null, primary key
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# user_id :integer
#
class Subscription < ApplicationRecord
belongs_to :conference
belongs_to :user

View file

@ -1,5 +1,24 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: surveys
#
# id :bigint not null, primary key
# description :text
# end_date :datetime
# start_date :datetime
# surveyable_type :string
# target :integer default("after_conference")
# title :string
# created_at :datetime not null
# updated_at :datetime not null
# surveyable_id :integer
#
# Indexes
#
# index_surveys_on_surveyable_type_and_surveyable_id (surveyable_type,surveyable_id)
#
class Survey < ActiveRecord::Base
belongs_to :surveyable, polymorphic: true
has_many :survey_questions, dependent: :destroy

View file

@ -1,5 +1,18 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_questions
#
# id :bigint not null, primary key
# kind :integer default("boolean")
# mandatory :boolean default(FALSE)
# max_choices :integer
# min_choices :integer
# possible_answers :text
# title :string
# survey_id :integer
#
class SurveyQuestion < ActiveRecord::Base
belongs_to :survey
has_many :survey_replies, dependent: :destroy

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_replies
#
# id :bigint not null, primary key
# text :text
# created_at :datetime not null
# updated_at :datetime not null
# survey_question_id :integer
# user_id :integer
#
class SurveyReply < ActiveRecord::Base
belongs_to :user
belongs_to :survey_question

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_submissions
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# survey_id :integer
# user_id :integer
#
class SurveySubmission < ActiveRecord::Base
belongs_to :user
belongs_to :survey

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: tickets
#
# id :bigint not null, primary key
# description :text
# price_cents :integer default(0), not null
# price_currency :string default("USD"), not null
# registration_ticket :boolean default(FALSE)
# title :string not null
# visible :boolean default(TRUE)
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Ticket < ApplicationRecord
belongs_to :conference
has_many :ticket_purchases, dependent: :destroy

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: ticket_purchases
#
# id :bigint not null, primary key
# amount_paid :float default(0.0)
# paid :boolean default(FALSE)
# quantity :integer default(1)
# week :integer
# created_at :datetime
# conference_id :integer
# payment_id :integer
# ticket_id :integer
# user_id :integer
#
class TicketPurchase < ApplicationRecord
belongs_to :ticket
belongs_to :user

View file

@ -1,5 +1,14 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: ticket_scannings
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# physical_ticket_id :integer not null
#
class TicketScanning < ApplicationRecord
belongs_to :physical_ticket

View file

@ -1,5 +1,33 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: tracks
#
# id :bigint not null, primary key
# cfp_active :boolean not null
# color :string
# description :text
# end_date :date
# guid :string not null
# name :string not null
# relevance :text
# short_name :string not null
# start_date :date
# state :string default("new"), not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
# room_id :integer
# selected_schedule_id :integer
# submitter_id :integer
#
# Indexes
#
# index_tracks_on_room_id (room_id)
# index_tracks_on_selected_schedule_id (selected_schedule_id)
# index_tracks_on_submitter_id (submitter_id)
#
class Track < ApplicationRecord
include ActiveRecord::Transitions
include RevisionCount

View file

@ -1,5 +1,51 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: users
#
# id :bigint not null, primary key
# affiliation :string
# avatar_content_type :string
# avatar_file_name :string
# avatar_file_size :integer
# avatar_updated_at :datetime
# biography :text
# confirmation_sent_at :datetime
# confirmation_token :string
# confirmed_at :datetime
# current_sign_in_at :datetime
# current_sign_in_ip :string
# email :string default(""), not null
# email_public :boolean default(FALSE)
# encrypted_password :string default(""), not null
# is_admin :boolean default(FALSE)
# is_disabled :boolean default(FALSE)
# languages :string
# last_sign_in_at :datetime
# last_sign_in_ip :string
# mobile :string
# name :string
# nickname :string
# picture :string
# remember_created_at :datetime
# reset_password_sent_at :datetime
# reset_password_token :string
# sign_in_count :integer default(0)
# tshirt :string
# unconfirmed_email :string
# username :string
# volunteer_experience :text
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_users_on_confirmation_token (confirmation_token) UNIQUE
# index_users_on_email (email) UNIQUE
# index_users_on_reset_password_token (reset_password_token) UNIQUE
# index_users_on_username (username) UNIQUE
#
class IChainRecordNotFound < StandardError
end

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: users_roles
#
# id :bigint not null, primary key
# role_id :integer
# user_id :integer
#
# Indexes
#
# index_users_roles_on_user_id_and_role_id (user_id,role_id)
#
class UsersRole < ApplicationRecord
belongs_to :role
belongs_to :user

View file

@ -1,5 +1,13 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: vchoices
#
# id :bigint not null, primary key
# vday_id :integer
# vposition_id :integer
#
class Vchoice < ApplicationRecord
belongs_to :vday
belongs_to :vposition

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: vdays
#
# id :bigint not null, primary key
# day :date
# description :text
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Vday < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,26 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: venues
#
# id :bigint not null, primary key
# city :string
# country :string
# description :text
# guid :string
# latitude :string
# longitude :string
# name :string
# photo_file_name :string
# picture :string
# postalcode :string
# street :string
# website :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Venue < ApplicationRecord
belongs_to :conference
has_one :commercial, as: :commercialable, dependent: :destroy

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: votes
#
# id :bigint not null, primary key
# rating :integer
# created_at :datetime
# updated_at :datetime
# event_id :integer
# user_id :integer
#
class Vote < ApplicationRecord
belongs_to :user
belongs_to :event

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: vpositions
#
# id :bigint not null, primary key
# description :text
# title :string not null
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class Vposition < ApplicationRecord
belongs_to :conference

View file

@ -1,5 +1,40 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: conferences
#
# id :bigint not null, primary key
# booth_limit :integer default(0)
# color :string
# custom_css :text
# custom_domain :string
# description :text
# end_date :date not null
# end_hour :integer default(20)
# events_per_week :text
# guid :string not null
# logo_file_name :string
# picture :string
# registration_limit :integer default(0)
# revision :integer default(0), not null
# short_title :string not null
# start_date :date not null
# start_hour :integer default(9)
# ticket_layout :integer default("portrait")
# timezone :string not null
# title :string not null
# use_vdays :boolean default(FALSE)
# use_volunteers :boolean
# use_vpositions :boolean default(FALSE)
# created_at :datetime
# updated_at :datetime
# organization_id :integer
#
# Indexes
#
# index_conferences_on_organization_id (organization_id)
#
class ConferenceSerializer < ActiveModel::Serializer
include ApplicationHelper
attributes :short_title, :title, :description, :start_date, :end_date, :picture_url,

View file

@ -1,5 +1,25 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_schedules
#
# id :bigint not null, primary key
# enabled :boolean default(TRUE)
# start_time :datetime
# created_at :datetime not null
# updated_at :datetime not null
# event_id :integer
# room_id :integer
# schedule_id :integer
#
# Indexes
#
# index_event_schedules_on_event_id (event_id)
# index_event_schedules_on_event_id_and_schedule_id (event_id,schedule_id) UNIQUE
# index_event_schedules_on_room_id (room_id)
# index_event_schedules_on_schedule_id (schedule_id)
#
class EventScheduleSerializer < ActiveModel::Serializer
include ActionView::Helpers::TextHelper

View file

@ -1,5 +1,34 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# abstract :text
# comments_count :integer default(0), not null
# description :text
# guid :string not null
# is_highlight :boolean default(FALSE)
# language :string
# max_attendees :integer
# progress :string default("new"), not null
# proposal_additional_speakers :text
# public :boolean default(TRUE)
# require_registration :boolean
# start_time :datetime
# state :string default("new"), not null
# subtitle :string
# title :string not null
# week :integer
# created_at :datetime
# updated_at :datetime
# difficulty_level_id :integer
# event_type_id :integer
# program_id :integer
# room_id :integer
# track_id :integer
#
class EventSerializer < ActiveModel::Serializer
include ActionView::Helpers::TextHelper

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: rooms
#
# id :bigint not null, primary key
# guid :string not null
# name :string not null
# order :integer
# size :integer
# url :string
# venue_id :integer not null
#
class RoomSerializer < ActiveModel::Serializer
attributes :guid, :name, :description

View file

@ -1,5 +1,33 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: tracks
#
# id :bigint not null, primary key
# cfp_active :boolean not null
# color :string
# description :text
# end_date :date
# guid :string not null
# name :string not null
# relevance :text
# short_name :string not null
# start_date :date
# state :string default("new"), not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
# room_id :integer
# selected_schedule_id :integer
# submitter_id :integer
#
# Indexes
#
# index_tracks_on_room_id (room_id)
# index_tracks_on_selected_schedule_id (selected_schedule_id)
# index_tracks_on_submitter_id (submitter_id)
#
class TrackSerializer < ActiveModel::Serializer
attributes :guid, :name, :color
end

View file

@ -1,5 +1,21 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: booths
#
# id :bigint not null, primary key
# description :text
# logo_link :string
# reasoning :text
# state :string
# submitter_relationship :text
# title :string
# website_url :string
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer
#
FactoryBot.define do
factory :booth do
title { Faker::Hipster.sentence }

View file

@ -1,6 +1,19 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: cfps
#
# id :bigint not null, primary key
# cfp_type :string
# description :text
# enable_registrations :boolean default(FALSE)
# end_date :date not null
# start_date :date not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
FactoryBot.define do
factory :cfp do

View file

@ -1,6 +1,28 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: comments
#
# id :bigint not null, primary key
# body :text
# commentable_type :string
# lft :integer
# rgt :integer
# subject :string
# title :string(50) default("")
# created_at :datetime
# updated_at :datetime
# commentable_id :integer
# parent_id :integer
# user_id :integer
#
# Indexes
#
# index_comments_on_commentable_id (commentable_id)
# index_comments_on_commentable_type (commentable_type)
# index_comments_on_user_id (user_id)
#
FactoryBot.define do
factory :comment do

View file

@ -1,6 +1,18 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: commercials
#
# id :bigint not null, primary key
# commercial_type :string
# commercialable_type :string
# url :string
# created_at :datetime
# updated_at :datetime
# commercial_id :string
# commercialable_id :integer
#
FactoryBot.define do
factory :commercial do

View file

@ -1,6 +1,40 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: conferences
#
# id :bigint not null, primary key
# booth_limit :integer default(0)
# color :string
# custom_css :text
# custom_domain :string
# description :text
# end_date :date not null
# end_hour :integer default(20)
# events_per_week :text
# guid :string not null
# logo_file_name :string
# picture :string
# registration_limit :integer default(0)
# revision :integer default(0), not null
# short_title :string not null
# start_date :date not null
# start_hour :integer default(9)
# ticket_layout :integer default("portrait")
# timezone :string not null
# title :string not null
# use_vdays :boolean default(FALSE)
# use_volunteers :boolean
# use_vpositions :boolean default(FALSE)
# created_at :datetime
# updated_at :datetime
# organization_id :integer
#
# Indexes
#
# index_conferences_on_organization_id (organization_id)
#
FactoryBot.define do
factory :conference do

View file

@ -1,5 +1,24 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: contacts
#
# id :bigint not null, primary key
# blog :string
# email :string
# facebook :string
# googleplus :string
# instagram :string
# mastodon :string
# social_tag :string
# sponsor_email :string
# twitter :string
# youtube :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :contact do
social_tag { SecureRandom.urlsafe_base64(4) }

View file

@ -1,5 +1,17 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: difficulty_levels
#
# id :bigint not null, primary key
# color :string
# description :text
# title :string
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
FactoryBot.define do
factory :difficulty_level do
title { 'Example Difficulty Level' }

View file

@ -1,6 +1,50 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: email_settings
#
# id :bigint not null, primary key
# accepted_body :text
# accepted_subject :string
# booths_acceptance_body :text
# booths_acceptance_subject :string
# booths_rejection_body :text
# booths_rejection_subject :string
# cfp_dates_updated_body :text
# cfp_dates_updated_subject :string
# conference_dates_updated_body :text
# conference_dates_updated_subject :string
# conference_registration_dates_updated_body :text
# conference_registration_dates_updated_subject :string
# confirmed_without_registration_body :text
# confirmed_without_registration_subject :string
# program_schedule_public_body :text
# program_schedule_public_subject :string
# registration_body :text
# registration_subject :string
# rejected_body :text
# rejected_subject :string
# send_on_accepted :boolean default(FALSE)
# send_on_booths_acceptance :boolean default(FALSE)
# send_on_booths_rejection :boolean default(FALSE)
# send_on_cfp_dates_updated :boolean default(FALSE)
# send_on_conference_dates_updated :boolean default(FALSE)
# send_on_conference_registration_dates_updated :boolean default(FALSE)
# send_on_confirmed_without_registration :boolean default(FALSE)
# send_on_program_schedule_public :boolean default(FALSE)
# send_on_registration :boolean default(FALSE)
# send_on_rejected :boolean default(FALSE)
# send_on_submitted_proposal :boolean default(FALSE)
# send_on_venue_updated :boolean default(FALSE)
# submitted_proposal_body :text
# submitted_proposal_subject :string
# venue_updated_body :text
# venue_updated_subject :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :email_settings do

View file

@ -1,6 +1,20 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: event_types
#
# id :bigint not null, primary key
# color :string
# description :string
# length :integer default(30)
# maximum_abstract_length :integer default(500)
# minimum_abstract_length :integer default(0)
# title :string not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
FactoryBot.define do
factory :event_type do

View file

@ -1,6 +1,17 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: event_users
#
# id :bigint not null, primary key
# comment :string
# event_role :string default("participant"), not null
# created_at :datetime
# updated_at :datetime
# event_id :integer
# user_id :integer
#
FactoryBot.define do
factory :event_user do

View file

@ -1,6 +1,34 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# abstract :text
# comments_count :integer default(0), not null
# description :text
# guid :string not null
# is_highlight :boolean default(FALSE)
# language :string
# max_attendees :integer
# progress :string default("new"), not null
# proposal_additional_speakers :text
# public :boolean default(TRUE)
# require_registration :boolean
# start_time :datetime
# state :string default("new"), not null
# subtitle :string
# title :string not null
# week :integer
# created_at :datetime
# updated_at :datetime
# difficulty_level_id :integer
# event_type_id :integer
# program_id :integer
# room_id :integer
# track_id :integer
#
FactoryBot.define do
factory :event do

View file

@ -1,6 +1,15 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: events_registrations
#
# id :bigint not null, primary key
# attended :boolean default(FALSE), not null
# created_at :datetime
# event_id :integer
# registration_id :integer
#
FactoryBot.define do
factory :events_registration do

View file

@ -1,6 +1,22 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: lodgings
#
# id :bigint not null, primary key
# description :text
# name :string
# photo_content_type :string
# photo_file_name :string
# photo_file_size :integer
# photo_updated_at :datetime
# picture :string
# website_link :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :lodging do

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: organizations
#
# id :bigint not null, primary key
# code_of_conduct :text
# description :text
# name :string not null
# picture :string
#
FactoryBot.define do
factory :organization do
sequence(:name) { |n| "#{Faker::Company.name} #{n}" }

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: payments
#
# id :bigint not null, primary key
# amount :integer
# authorization_code :string
# last4 :string
# status :integer default("unpaid"), not null
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer not null
# user_id :integer not null
#
FactoryBot.define do
factory :payment do
user

View file

@ -1,6 +1,27 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: programs
#
# id :bigint not null, primary key
# blind_voting :boolean default(FALSE)
# languages :string
# rating :integer default(0)
# schedule_fluid :boolean default(FALSE)
# schedule_interval :integer default(15), not null
# schedule_public :boolean default(FALSE)
# voting_end_date :datetime
# voting_start_date :datetime
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# selected_schedule_id :integer
#
# Indexes
#
# index_programs_on_selected_schedule_id (selected_schedule_id)
#
FactoryBot.define do
factory :program do

View file

@ -1,6 +1,16 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: registration_periods
#
# id :bigint not null, primary key
# end_date :date
# start_date :date
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :registration_period do

View file

@ -1,5 +1,22 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: roles
#
# id :bigint not null, primary key
# description :string
# name :string
# resource_type :string
# created_at :datetime
# updated_at :datetime
# resource_id :integer
#
# Indexes
#
# index_roles_on_name (name)
# index_roles_on_name_and_resource_type_and_resource_id (name,resource_type,resource_id)
#
FactoryBot.define do
factory :role do
name { 'my role' }

View file

@ -1,6 +1,17 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: rooms
#
# id :bigint not null, primary key
# guid :string not null
# name :string not null
# order :integer
# size :integer
# url :string
# venue_id :integer not null
#
FactoryBot.define do
factory :room do
name { "Room #{Faker::Address.country}" }

View file

@ -1,6 +1,30 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: splashpages
#
# id :bigint not null, primary key
# banner_photo_content_type :string
# banner_photo_file_name :string
# banner_photo_file_size :integer
# banner_photo_updated_at :datetime
# include_booths :boolean
# include_cfp :boolean default(FALSE)
# include_lodgings :boolean
# include_program :boolean
# include_registrations :boolean
# include_social_media :boolean
# include_sponsors :boolean
# include_tickets :boolean
# include_tracks :boolean
# include_venue :boolean
# public :boolean
# shuffle_highlights :boolean default(FALSE), not null
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :splashpage do

View file

@ -1,6 +1,20 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: sponsors
#
# id :bigint not null, primary key
# description :text
# logo_file_name :string
# name :string
# picture :string
# website_url :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# sponsorship_level_id :integer
#
FactoryBot.define do
factory :sponsor do

View file

@ -1,6 +1,16 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: sponsorship_levels
#
# id :bigint not null, primary key
# position :integer
# title :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :sponsorship_level do

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: subscriptions
#
# id :bigint not null, primary key
# created_at :datetime
# updated_at :datetime
# conference_id :integer
# user_id :integer
#
FactoryBot.define do
factory :subscription do
user

View file

@ -1,5 +1,18 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_questions
#
# id :bigint not null, primary key
# kind :integer default("boolean")
# mandatory :boolean default(FALSE)
# max_choices :integer
# min_choices :integer
# possible_answers :text
# title :string
# survey_id :integer
#
FactoryBot.define do
factory :survey_question do
survey

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_replies
#
# id :bigint not null, primary key
# text :text
# created_at :datetime not null
# updated_at :datetime not null
# survey_question_id :integer
# user_id :integer
#
FactoryBot.define do
factory :survey_reply do
user

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: survey_submissions
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# survey_id :integer
# user_id :integer
#
FactoryBot.define do
factory :survey_submission do
user

View file

@ -1,5 +1,24 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: surveys
#
# id :bigint not null, primary key
# description :text
# end_date :datetime
# start_date :datetime
# surveyable_type :string
# target :integer default("after_conference")
# title :string
# created_at :datetime not null
# updated_at :datetime not null
# surveyable_id :integer
#
# Indexes
#
# index_surveys_on_surveyable_type_and_surveyable_id (surveyable_type,surveyable_id)
#
FactoryBot.define do
factory :survey do
title { 'This is my survey' }

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: ticket_purchases
#
# id :bigint not null, primary key
# amount_paid :float default(0.0)
# paid :boolean default(FALSE)
# quantity :integer default(1)
# week :integer
# created_at :datetime
# conference_id :integer
# payment_id :integer
# ticket_id :integer
# user_id :integer
#
FactoryBot.define do
factory :ticket_purchase do
user

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: tickets
#
# id :bigint not null, primary key
# description :text
# price_cents :integer default(0), not null
# price_currency :string default("USD"), not null
# registration_ticket :boolean default(FALSE)
# title :string not null
# visible :boolean default(TRUE)
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :ticket do
title { "#{Faker::Hipster.word} Ticket" }

View file

@ -1,5 +1,33 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: tracks
#
# id :bigint not null, primary key
# cfp_active :boolean not null
# color :string
# description :text
# end_date :date
# guid :string not null
# name :string not null
# relevance :text
# short_name :string not null
# start_date :date
# state :string default("new"), not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
# room_id :integer
# selected_schedule_id :integer
# submitter_id :integer
#
# Indexes
#
# index_tracks_on_room_id (room_id)
# index_tracks_on_selected_schedule_id (selected_schedule_id)
# index_tracks_on_submitter_id (submitter_id)
#
FactoryBot.define do
factory :track do
name { Faker::Commerce.department(2, true) }

View file

@ -1,6 +1,51 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: users
#
# id :bigint not null, primary key
# affiliation :string
# avatar_content_type :string
# avatar_file_name :string
# avatar_file_size :integer
# avatar_updated_at :datetime
# biography :text
# confirmation_sent_at :datetime
# confirmation_token :string
# confirmed_at :datetime
# current_sign_in_at :datetime
# current_sign_in_ip :string
# email :string default(""), not null
# email_public :boolean default(FALSE)
# encrypted_password :string default(""), not null
# is_admin :boolean default(FALSE)
# is_disabled :boolean default(FALSE)
# languages :string
# last_sign_in_at :datetime
# last_sign_in_ip :string
# mobile :string
# name :string
# nickname :string
# picture :string
# remember_created_at :datetime
# reset_password_sent_at :datetime
# reset_password_token :string
# sign_in_count :integer default(0)
# tshirt :string
# unconfirmed_email :string
# username :string
# volunteer_experience :text
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_users_on_confirmation_token (confirmation_token) UNIQUE
# index_users_on_email (email) UNIQUE
# index_users_on_reset_password_token (reset_password_token) UNIQUE
# index_users_on_username (username) UNIQUE
#
# It is a feature of our app that first signed up user is admin. This property
# is set in a before create callback `setup_role` in user model.

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: vdays
#
# id :bigint not null, primary key
# day :date
# description :text
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :vday do
day { Time.zone.today }

View file

@ -1,6 +1,26 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
# == Schema Information
#
# Table name: venues
#
# id :bigint not null, primary key
# city :string
# country :string
# description :text
# guid :string
# latitude :string
# longitude :string
# name :string
# photo_file_name :string
# picture :string
# postalcode :string
# street :string
# website :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :venue do
name { "#{Faker::Company.name} Office" }

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: votes
#
# id :bigint not null, primary key
# rating :integer
# created_at :datetime
# updated_at :datetime
# event_id :integer
# user_id :integer
#
FactoryBot.define do
factory :vote do
event

View file

@ -1,5 +1,16 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: vpositions
#
# id :bigint not null, primary key
# description :text
# title :string not null
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :vposition do
title { 'Example Volunteer Position' }

View file

@ -1,5 +1,21 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: booths
#
# id :bigint not null, primary key
# description :text
# logo_link :string
# reasoning :text
# state :string
# submitter_relationship :text
# title :string
# website_url :string
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer
#
require 'spec_helper'
describe Booth do

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: cfps
#
# id :bigint not null, primary key
# cfp_type :string
# description :text
# enable_registrations :boolean default(FALSE)
# end_date :date not null
# start_date :date not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
require 'spec_helper'
describe Cfp do

View file

@ -1,5 +1,28 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: comments
#
# id :bigint not null, primary key
# body :text
# commentable_type :string
# lft :integer
# rgt :integer
# subject :string
# title :string(50) default("")
# created_at :datetime
# updated_at :datetime
# commentable_id :integer
# parent_id :integer
# user_id :integer
#
# Indexes
#
# index_comments_on_commentable_id (commentable_id)
# index_comments_on_commentable_type (commentable_type)
# index_comments_on_user_id (user_id)
#
require 'spec_helper'
describe Commercial do

View file

@ -1,5 +1,18 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: commercials
#
# id :bigint not null, primary key
# commercial_type :string
# commercialable_type :string
# url :string
# created_at :datetime
# updated_at :datetime
# commercial_id :string
# commercialable_id :integer
#
require 'spec_helper'
describe Commercial do

View file

@ -1,6 +1,42 @@
#!/bin/env ruby
# encoding: utf-8
# frozen_string_literal: true
# == Schema Information
#
# Table name: conferences
#
# id :bigint not null, primary key
# booth_limit :integer default(0)
# color :string
# custom_css :text
# custom_domain :string
# description :text
# end_date :date not null
# end_hour :integer default(20)
# events_per_week :text
# guid :string not null
# logo_file_name :string
# picture :string
# registration_limit :integer default(0)
# revision :integer default(0), not null
# short_title :string not null
# start_date :date not null
# start_hour :integer default(9)
# ticket_layout :integer default("portrait")
# timezone :string not null
# title :string not null
# use_vdays :boolean default(FALSE)
# use_volunteers :boolean
# use_vpositions :boolean default(FALSE)
# created_at :datetime
# updated_at :datetime
# organization_id :integer
#
# Indexes
#
# index_conferences_on_organization_id (organization_id)
#
#!/bin/env ruby
require 'spec_helper'
describe Conference do

View file

@ -1,5 +1,50 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: email_settings
#
# id :bigint not null, primary key
# accepted_body :text
# accepted_subject :string
# booths_acceptance_body :text
# booths_acceptance_subject :string
# booths_rejection_body :text
# booths_rejection_subject :string
# cfp_dates_updated_body :text
# cfp_dates_updated_subject :string
# conference_dates_updated_body :text
# conference_dates_updated_subject :string
# conference_registration_dates_updated_body :text
# conference_registration_dates_updated_subject :string
# confirmed_without_registration_body :text
# confirmed_without_registration_subject :string
# program_schedule_public_body :text
# program_schedule_public_subject :string
# registration_body :text
# registration_subject :string
# rejected_body :text
# rejected_subject :string
# send_on_accepted :boolean default(FALSE)
# send_on_booths_acceptance :boolean default(FALSE)
# send_on_booths_rejection :boolean default(FALSE)
# send_on_cfp_dates_updated :boolean default(FALSE)
# send_on_conference_dates_updated :boolean default(FALSE)
# send_on_conference_registration_dates_updated :boolean default(FALSE)
# send_on_confirmed_without_registration :boolean default(FALSE)
# send_on_program_schedule_public :boolean default(FALSE)
# send_on_registration :boolean default(FALSE)
# send_on_rejected :boolean default(FALSE)
# send_on_submitted_proposal :boolean default(FALSE)
# send_on_venue_updated :boolean default(FALSE)
# submitted_proposal_body :text
# submitted_proposal_subject :string
# venue_updated_body :text
# venue_updated_subject :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
require 'spec_helper'
describe EmailSettings do

View file

@ -1,5 +1,25 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_schedules
#
# id :bigint not null, primary key
# enabled :boolean default(TRUE)
# start_time :datetime
# created_at :datetime not null
# updated_at :datetime not null
# event_id :integer
# room_id :integer
# schedule_id :integer
#
# Indexes
#
# index_event_schedules_on_event_id (event_id)
# index_event_schedules_on_event_id_and_schedule_id (event_id,schedule_id) UNIQUE
# index_event_schedules_on_room_id (room_id)
# index_event_schedules_on_schedule_id (schedule_id)
#
require 'spec_helper'
describe EventSchedule do

View file

@ -1,5 +1,34 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# abstract :text
# comments_count :integer default(0), not null
# description :text
# guid :string not null
# is_highlight :boolean default(FALSE)
# language :string
# max_attendees :integer
# progress :string default("new"), not null
# proposal_additional_speakers :text
# public :boolean default(TRUE)
# require_registration :boolean
# start_time :datetime
# state :string default("new"), not null
# subtitle :string
# title :string not null
# week :integer
# created_at :datetime
# updated_at :datetime
# difficulty_level_id :integer
# event_type_id :integer
# program_id :integer
# room_id :integer
# track_id :integer
#
require 'spec_helper'
describe Event do

View file

@ -1,5 +1,20 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: event_types
#
# id :bigint not null, primary key
# color :string
# description :string
# length :integer default(30)
# maximum_abstract_length :integer default(500)
# minimum_abstract_length :integer default(0)
# title :string not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
require 'spec_helper'
describe EventType do

View file

@ -1,5 +1,15 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: organizations
#
# id :bigint not null, primary key
# code_of_conduct :text
# description :text
# name :string not null
# picture :string
#
require 'spec_helper'
describe Organization do

View file

@ -1,5 +1,19 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: payments
#
# id :bigint not null, primary key
# amount :integer
# authorization_code :string
# last4 :string
# status :integer default("unpaid"), not null
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer not null
# user_id :integer not null
#
require 'spec_helper'
require 'stripe_mock'

Some files were not shown because too many files have changed in this diff Show more