This repository was archived by the owner on Feb 21, 2023. It is now read-only.
File tree 11 files changed +35
-28
lines changed
11 files changed +35
-28
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: conferences
23
22
# analytics_code :text
24
23
# code_of_conduct_url :string
25
24
#
26
- # Indexes
27
- #
28
- # index_conferences_on_domain (domain)
29
- # index_conferences_on_main (main)
30
- #
31
25
32
26
class Conference < ActiveRecord ::Base
33
27
THEMES = %w( it_tour not_a_conf ) . freeze
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: events
29
28
# after_party_announced :boolean default(FALSE)
30
29
# sessions_announced :boolean default(FALSE)
31
30
# speakers_announced :boolean default(FALSE)
32
- # logo :string(255)
33
- # coverart :string(255)
34
31
# current :boolean default(FALSE), not null
35
32
# show_feedback_form :boolean default(FALSE), not null
36
33
# show_photo_gallery :boolean default(FALSE), not null
41
38
# call_to_papers_url :string(255)
42
39
# venue_map_embedded_url :text
43
40
# after_party_venue_map_embedded_url :text
41
+ # tickets_url :string
42
+ # sponsors_announced :boolean default(FALSE), not null
43
+ #
44
+ # Foreign Keys
45
+ #
46
+ # events_conference_id_fk (conference_id => conferences.id)
44
47
#
45
48
46
49
class Event < ActiveRecord ::Base
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: feedbacks
10
9
# created_at :datetime
11
10
# updated_at :datetime
12
11
#
12
+ # Foreign Keys
13
+ #
14
+ # feedbacks_event_id_fk (event_id => events.id)
15
+ #
13
16
14
17
class Feedback < ActiveRecord ::Base
15
18
belongs_to :event , inverse_of : :feedbacks
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: photos
6
5
#
7
6
# id :integer not null, primary key
8
7
# event_id :integer not null
9
8
# position :integer not null
10
- # asset :string(255) not null
11
9
# created_at :datetime
12
10
# updated_at :datetime
13
11
#
12
+ # Foreign Keys
13
+ #
14
+ # photos_event_id_fk (event_id => events.id)
15
+ #
14
16
15
17
class Photo < ActiveRecord ::Base
16
18
belongs_to :event , inverse_of : :photos
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: sessions
13
12
# created_at :datetime
14
13
# updated_at :datetime
15
14
# track :integer default(1), not null
16
- # end_at :string(255)
15
+ # end_at :string
17
16
# description :text
18
17
#
18
+ # Foreign Keys
19
+ #
20
+ # sessions_event_id_fk (event_id => events.id)
21
+ #
19
22
20
23
class Session < ActiveRecord ::Base
21
24
belongs_to :event
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: session_speakers
10
9
# created_at :datetime
11
10
# updated_at :datetime
12
11
#
13
- # Indexes
14
- #
15
- # index_session_speakers_on_speaker_id_and_session_id (speaker_id,session_id) UNIQUE
16
- #
17
12
# Foreign Keys
18
13
#
19
14
# session_speakers_session_id_fk (session_id => sessions.id)
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: speakers
13
12
# created_at :datetime
14
13
# updated_at :datetime
15
14
# twitter_account :string(255)
16
- # photo :string(255)
17
15
# tshirt_size :string(255)
18
16
# github_account :string(255)
19
17
# facebook_account :string(255)
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
+ # == Schema Information
3
+ #
4
+ # Table name: sponsors
5
+ #
6
+ # id :integer not null, primary key
7
+ # name :string not null
8
+ # website_url :string not null
9
+ # created_at :datetime not null
10
+ # updated_at :datetime not null
11
+ #
12
+
2
13
3
14
class Sponsor < ActiveRecord ::Base
4
15
validates :name , presence : true
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: subscribers
11
10
# created_at :datetime
12
11
# updated_at :datetime
13
12
#
13
+ # Foreign Keys
14
+ #
15
+ # subscribers_conference_id_fk (conference_id => conferences.id)
16
+ #
14
17
15
18
class Subscriber < ActiveRecord ::Base
16
19
belongs_to :conference , inverse_of : :subscribers
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
-
3
2
# == Schema Information
4
3
#
5
4
# Table name: users
12
11
# created_at :datetime
13
12
# updated_at :datetime
14
13
#
15
- # Indexes
16
- #
17
- # index_users_on_email (email) UNIQUE
18
- #
19
14
20
15
class User < ActiveRecord ::Base
21
16
has_secure_password
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if Rails.env.development?
18
18
'position_in_serializer' => 'before' ,
19
19
'show_foreign_keys' => 'true' ,
20
20
'show_complete_foreign_keys' => 'false' ,
21
- 'show_indexes' => 'true ' ,
21
+ 'show_indexes' => 'false ' ,
22
22
'simple_indexes' => 'false' ,
23
23
'model_dir' => 'app/models' ,
24
24
'root_dir' => '' ,
You can’t perform that action at this time.
0 commit comments