|
43 | 43 | t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
44 | 44 | end
|
45 | 45 |
|
46 |
| - create_table "comments", id: :serial, force: :cascade do |t| |
47 |
| - t.integer "proposal_id" |
48 |
| - t.integer "user_id" |
| 46 | + create_table "comments", force: :cascade do |t| |
| 47 | + t.bigint "proposal_id" |
| 48 | + t.bigint "user_id" |
49 | 49 | t.integer "parent_id"
|
50 | 50 | t.text "body"
|
51 | 51 | t.string "type"
|
|
55 | 55 | t.index ["user_id"], name: "index_comments_on_user_id"
|
56 | 56 | end
|
57 | 57 |
|
58 |
| - create_table "events", id: :serial, force: :cascade do |t| |
| 58 | + create_table "events", force: :cascade do |t| |
59 | 59 | t.string "name"
|
60 | 60 | t.string "slug"
|
61 | 61 | t.string "url"
|
|
72 | 72 | t.text "proposal_tags"
|
73 | 73 | t.text "review_tags"
|
74 | 74 | t.text "custom_fields"
|
75 |
| - t.text "speaker_notification_emails", default: "---\n:accept: ''\n:reject: ''\n:waitlist: ''\n" |
| 75 | + t.text "speaker_notification_emails" |
76 | 76 | t.datetime "created_at"
|
77 | 77 | t.datetime "updated_at"
|
78 | 78 | t.index ["slug"], name: "index_events_on_slug"
|
79 | 79 | end
|
80 | 80 |
|
81 |
| - create_table "invitations", id: :serial, force: :cascade do |t| |
82 |
| - t.integer "proposal_id" |
83 |
| - t.integer "user_id" |
| 81 | + create_table "invitations", force: :cascade do |t| |
| 82 | + t.bigint "proposal_id" |
| 83 | + t.bigint "user_id" |
84 | 84 | t.string "email"
|
85 | 85 | t.string "state", default: "pending"
|
86 | 86 | t.string "slug"
|
|
92 | 92 | t.index ["user_id"], name: "index_invitations_on_user_id"
|
93 | 93 | end
|
94 | 94 |
|
95 |
| - create_table "notifications", id: :serial, force: :cascade do |t| |
96 |
| - t.integer "user_id" |
| 95 | + create_table "notifications", force: :cascade do |t| |
| 96 | + t.bigint "user_id" |
97 | 97 | t.string "message"
|
98 | 98 | t.string "target_path"
|
99 | 99 | t.datetime "read_at"
|
|
103 | 103 | end
|
104 | 104 |
|
105 | 105 | create_table "pages", force: :cascade do |t|
|
106 |
| - t.string "name" |
107 |
| - t.string "slug" |
| 106 | + t.string "name", null: false |
| 107 | + t.string "slug", null: false |
108 | 108 | t.bigint "website_id"
|
109 | 109 | t.text "published_body"
|
110 | 110 | t.text "unpublished_body"
|
|
116 | 116 | t.index ["website_id"], name: "index_pages_on_website_id"
|
117 | 117 | end
|
118 | 118 |
|
119 |
| - create_table "program_sessions", id: :serial, force: :cascade do |t| |
120 |
| - t.integer "event_id" |
121 |
| - t.integer "proposal_id" |
| 119 | + create_table "program_sessions", force: :cascade do |t| |
| 120 | + t.bigint "event_id" |
| 121 | + t.bigint "proposal_id" |
122 | 122 | t.text "title"
|
123 | 123 | t.text "abstract"
|
124 |
| - t.integer "track_id" |
125 |
| - t.integer "session_format_id" |
126 |
| - t.text "state", default: "active" |
| 124 | + t.bigint "track_id" |
| 125 | + t.bigint "session_format_id" |
| 126 | + t.text "state", default: "draft" |
127 | 127 | t.datetime "created_at", null: false
|
128 | 128 | t.datetime "updated_at", null: false
|
129 | 129 | t.text "info"
|
|
133 | 133 | t.index ["track_id"], name: "index_program_sessions_on_track_id"
|
134 | 134 | end
|
135 | 135 |
|
136 |
| - create_table "proposals", id: :serial, force: :cascade do |t| |
137 |
| - t.integer "event_id" |
| 136 | + create_table "proposals", force: :cascade do |t| |
| 137 | + t.bigint "event_id" |
138 | 138 | t.string "state", default: "submitted"
|
139 | 139 | t.string "uuid"
|
140 | 140 | t.string "title"
|
141 |
| - t.integer "session_format_id" |
142 |
| - t.integer "track_id" |
| 141 | + t.bigint "session_format_id" |
| 142 | + t.bigint "track_id" |
143 | 143 | t.text "abstract"
|
144 | 144 | t.text "details"
|
145 | 145 | t.text "pitch"
|
|
156 | 156 | t.index ["uuid"], name: "index_proposals_on_uuid", unique: true
|
157 | 157 | end
|
158 | 158 |
|
159 |
| - create_table "ratings", id: :serial, force: :cascade do |t| |
160 |
| - t.integer "proposal_id" |
161 |
| - t.integer "user_id" |
| 159 | + create_table "ratings", force: :cascade do |t| |
| 160 | + t.bigint "proposal_id" |
| 161 | + t.bigint "user_id" |
162 | 162 | t.integer "score"
|
163 | 163 | t.datetime "created_at"
|
164 | 164 | t.datetime "updated_at"
|
165 | 165 | t.index ["proposal_id"], name: "index_ratings_on_proposal_id"
|
166 | 166 | t.index ["user_id"], name: "index_ratings_on_user_id"
|
167 | 167 | end
|
168 | 168 |
|
169 |
| - create_table "rooms", id: :serial, force: :cascade do |t| |
170 |
| - t.integer "event_id" |
| 169 | + create_table "rooms", force: :cascade do |t| |
| 170 | + t.bigint "event_id" |
171 | 171 | t.string "name"
|
172 | 172 | t.string "room_number"
|
173 | 173 | t.string "level"
|
|
179 | 179 | t.index ["event_id"], name: "index_rooms_on_event_id"
|
180 | 180 | end
|
181 | 181 |
|
182 |
| - create_table "session_formats", id: :serial, force: :cascade do |t| |
183 |
| - t.integer "event_id" |
| 182 | + create_table "session_formats", force: :cascade do |t| |
| 183 | + t.bigint "event_id" |
184 | 184 | t.string "name"
|
185 | 185 | t.string "description"
|
186 | 186 | t.integer "duration"
|
|
190 | 190 | t.index ["event_id"], name: "index_session_formats_on_event_id"
|
191 | 191 | end
|
192 | 192 |
|
193 |
| - create_table "speakers", id: :serial, force: :cascade do |t| |
194 |
| - t.integer "user_id" |
195 |
| - t.integer "event_id" |
196 |
| - t.integer "proposal_id" |
197 |
| - t.integer "program_session_id" |
| 193 | + create_table "speakers", force: :cascade do |t| |
| 194 | + t.bigint "user_id" |
| 195 | + t.bigint "event_id" |
| 196 | + t.bigint "proposal_id" |
| 197 | + t.bigint "program_session_id" |
198 | 198 | t.string "speaker_name"
|
199 | 199 | t.string "speaker_email"
|
200 | 200 | t.text "bio"
|
|
227 | 227 | t.index ["event_id"], name: "index_sponsors_on_event_id"
|
228 | 228 | end
|
229 | 229 |
|
230 |
| - create_table "taggings", id: :serial, force: :cascade do |t| |
231 |
| - t.integer "proposal_id" |
| 230 | + create_table "taggings", force: :cascade do |t| |
| 231 | + t.bigint "proposal_id" |
232 | 232 | t.string "tag"
|
233 | 233 | t.boolean "internal", default: false
|
234 | 234 | t.datetime "created_at"
|
235 | 235 | t.datetime "updated_at"
|
236 | 236 | t.index ["proposal_id"], name: "index_taggings_on_proposal_id"
|
237 | 237 | end
|
238 | 238 |
|
239 |
| - create_table "teammates", id: :serial, force: :cascade do |t| |
240 |
| - t.integer "event_id" |
241 |
| - t.integer "user_id" |
| 239 | + create_table "teammates", force: :cascade do |t| |
| 240 | + t.bigint "event_id" |
| 241 | + t.bigint "user_id" |
242 | 242 | t.string "role"
|
243 | 243 | t.string "email"
|
244 | 244 | t.string "state"
|
|
254 | 254 | t.index ["user_id"], name: "index_teammates_on_user_id"
|
255 | 255 | end
|
256 | 256 |
|
257 |
| - create_table "time_slots", id: :serial, force: :cascade do |t| |
258 |
| - t.integer "program_session_id" |
259 |
| - t.integer "room_id" |
260 |
| - t.integer "event_id" |
| 257 | + create_table "time_slots", force: :cascade do |t| |
| 258 | + t.bigint "program_session_id" |
| 259 | + t.bigint "room_id" |
| 260 | + t.bigint "event_id" |
261 | 261 | t.integer "conference_day"
|
262 | 262 | t.time "start_time"
|
263 | 263 | t.time "end_time"
|
|
266 | 266 | t.text "presenter"
|
267 | 267 | t.datetime "created_at"
|
268 | 268 | t.datetime "updated_at"
|
269 |
| - t.integer "track_id" |
| 269 | + t.bigint "track_id" |
270 | 270 | t.index ["conference_day"], name: "index_time_slots_on_conference_day"
|
271 | 271 | t.index ["event_id"], name: "index_time_slots_on_event_id"
|
272 | 272 | t.index ["program_session_id"], name: "index_time_slots_on_program_session_id"
|
273 | 273 | t.index ["room_id"], name: "index_time_slots_on_room_id"
|
| 274 | + t.index ["track_id"], name: "index_time_slots_on_track_id" |
274 | 275 | end
|
275 | 276 |
|
276 |
| - create_table "tracks", id: :serial, force: :cascade do |t| |
277 |
| - t.integer "event_id" |
| 277 | + create_table "tracks", force: :cascade do |t| |
| 278 | + t.bigint "event_id" |
278 | 279 | t.string "name"
|
279 | 280 | t.string "description", limit: 250
|
280 | 281 | t.text "guidelines"
|
|
283 | 284 | t.index ["event_id"], name: "index_tracks_on_event_id"
|
284 | 285 | end
|
285 | 286 |
|
286 |
| - create_table "users", id: :serial, force: :cascade do |t| |
| 287 | + create_table "users", force: :cascade do |t| |
287 | 288 | t.string "name"
|
288 | 289 | t.string "email", default: "", null: false
|
289 | 290 | t.text "bio"
|
|
326 | 327 | t.bigint "event_id"
|
327 | 328 | t.datetime "created_at", precision: 6, null: false
|
328 | 329 | t.datetime "updated_at", precision: 6, null: false
|
329 |
| - t.string "theme", default: "default" |
| 330 | + t.string "theme", default: "default", null: false |
330 | 331 | t.string "domains"
|
331 | 332 | t.string "city"
|
332 | 333 | t.text "location"
|
|
0 commit comments