Skip to content

Commit 24d6444

Browse files
committed
refresh schema
1 parent 13fea3f commit 24d6444

File tree

1 file changed

+46
-34
lines changed

1 file changed

+46
-34
lines changed

db/schema.rb

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,45 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_10_21_103843) do
14-
15-
create_table "active_storage_attachments", charset: "utf8", force: :cascade do |t|
13+
ActiveRecord::Schema[7.2].define(version: 2025_12_02_131317) do
14+
create_table "active_storage_attachments", charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", force: :cascade do |t|
1615
t.string "name", null: false
1716
t.string "record_type", null: false
1817
t.bigint "record_id", null: false
1918
t.bigint "blob_id", null: false
20-
t.datetime "created_at", precision: 6, null: false
19+
t.datetime "created_at", null: false
2120
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
2221
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
2322
end
2423

25-
create_table "active_storage_blobs", charset: "utf8", force: :cascade do |t|
24+
create_table "active_storage_blobs", charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", force: :cascade do |t|
2625
t.string "key", null: false
2726
t.string "filename", null: false
2827
t.string "content_type"
2928
t.text "metadata"
3029
t.string "service_name", null: false
3130
t.bigint "byte_size", null: false
3231
t.string "checksum"
33-
t.datetime "created_at", precision: 6, null: false
32+
t.datetime "created_at", null: false
3433
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
3534
end
3635

37-
create_table "active_storage_variant_records", charset: "utf8", force: :cascade do |t|
36+
create_table "active_storage_variant_records", charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", force: :cascade do |t|
3837
t.bigint "blob_id", null: false
3938
t.string "variation_digest", null: false
4039
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
4140
end
4241

43-
create_table "announcements", id: :integer, charset: "utf8", collation: "utf8_bin", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
42+
create_table "announcements", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
4443
t.string "title"
45-
t.text "text", size: :medium
44+
t.text "text", size: :long
4645
t.integer "originator_id"
4746
t.datetime "created_at"
4847
t.datetime "updated_at"
4948
end
5049

51-
create_table "comments", id: :integer, charset: "utf8", collation: "utf8_bin", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
52-
t.text "text"
50+
create_table "comments", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
51+
t.text "text", size: :medium
5352
t.integer "commentable_id"
5453
t.string "commentable_type"
5554
t.integer "commenter_id"
@@ -58,14 +57,14 @@
5857
t.boolean "ham"
5958
end
6059

61-
create_table "enrollments", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
60+
create_table "enrollments", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
6261
t.integer "announcement_id"
6362
t.integer "user_id"
6463
t.datetime "created_at"
6564
t.datetime "updated_at"
6665
end
6766

68-
create_table "episodes", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
67+
create_table "episodes", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
6968
t.string "name"
7069
t.date "start_date"
7170
t.date "end_date"
@@ -75,7 +74,7 @@
7574
t.text "description"
7675
end
7776

78-
create_table "episodes_projects", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
77+
create_table "episodes_projects", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
7978
t.integer "episode_id"
8079
t.integer "project_id"
8180
t.datetime "created_at"
@@ -84,14 +83,14 @@
8483
t.index ["project_id"], name: "index_episodes_projects_on_project_id"
8584
end
8685

87-
create_table "faqs", charset: "utf8", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
88-
t.text "question"
89-
t.text "answer"
86+
create_table "faqs", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
87+
t.text "question", size: :medium
88+
t.text "answer", size: :medium
9089
t.datetime "created_at", null: false
9190
t.datetime "updated_at", null: false
9291
end
9392

94-
create_table "impressions", charset: "utf8", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
93+
create_table "impressions", charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
9594
t.string "impressionable_type"
9695
t.integer "impressionable_id"
9796
t.integer "user_id"
@@ -117,7 +116,7 @@
117116
t.index ["user_id"], name: "index_impressions_on_user_id"
118117
end
119118

120-
create_table "keywords", id: :integer, charset: "utf8", collation: "utf8_bin", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
119+
create_table "keywords", id: :integer, charset: "utf8mb3", collation: "utf8mb3_bin", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
121120
t.text "name"
122121
t.datetime "created_at", null: false
123122
t.datetime "updated_at", null: false
@@ -128,35 +127,35 @@
128127
t.string "description"
129128
end
130129

131-
create_table "keywords_projects", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
130+
create_table "keywords_projects", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
132131
t.integer "project_id"
133132
t.integer "keyword_id"
134133
t.datetime "created_at", null: false
135134
t.datetime "updated_at", null: false
136135
end
137136

138-
create_table "keywords_users", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
137+
create_table "keywords_users", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
139138
t.integer "user_id"
140139
t.integer "keyword_id"
141140
t.datetime "created_at", null: false
142141
t.datetime "updated_at", null: false
143142
end
144143

145-
create_table "likes", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
144+
create_table "likes", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
146145
t.integer "project_id"
147146
t.integer "user_id"
148147
t.datetime "created_at", null: false
149148
t.datetime "updated_at", null: false
150149
end
151150

152-
create_table "memberships", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
151+
create_table "memberships", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
153152
t.integer "project_id"
154153
t.integer "user_id"
155154
t.datetime "created_at", null: false
156155
t.datetime "updated_at", null: false
157156
end
158157

159-
create_table "notifications", id: :integer, charset: "utf8", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
158+
create_table "notifications", id: :integer, charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
160159
t.integer "recipient_id"
161160
t.integer "actor_id"
162161
t.datetime "read_at"
@@ -167,16 +166,23 @@
167166
t.datetime "updated_at", null: false
168167
end
169168

170-
create_table "project_follows", id: :integer, charset: "utf8", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
169+
create_table "project_follows", id: :integer, charset: "utf8mb3", collation: "utf8mb3_uca1400_ai_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
171170
t.integer "project_id"
172171
t.integer "user_id"
173172
t.datetime "created_at", null: false
174173
t.datetime "updated_at", null: false
175174
end
176175

177-
create_table "projects", id: :integer, charset: "utf8", collation: "utf8_bin", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
178-
t.text "title"
179-
t.text "description"
176+
create_table "project_interests", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
177+
t.integer "project_id"
178+
t.integer "keyword_id"
179+
t.datetime "created_at", precision: nil
180+
t.datetime "updated_at", precision: nil
181+
end
182+
183+
create_table "projects", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
184+
t.text "title", size: :medium
185+
t.text "description", size: :medium
180186
t.datetime "created_at", null: false
181187
t.datetime "updated_at", null: false
182188
t.integer "originator_id"
@@ -191,26 +197,33 @@
191197
t.integer "projecthits", default: 0
192198
end
193199

194-
create_table "roles", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
200+
create_table "roles", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
195201
t.string "name"
196202
t.datetime "created_at"
197203
t.datetime "updated_at"
198204
end
199205

200-
create_table "roles_users", id: false, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
206+
create_table "roles_users", id: false, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
201207
t.integer "role_id"
202208
t.integer "user_id"
203209
end
204210

205-
create_table "updates", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
206-
t.text "text"
211+
create_table "updates", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
212+
t.text "text", size: :medium
207213
t.integer "author_id"
208214
t.integer "project_id"
209215
t.datetime "created_at", null: false
210216
t.datetime "updated_at", null: false
211217
end
212218

213-
create_table "users", id: :integer, charset: "latin1", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
219+
create_table "user_interests", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
220+
t.integer "user_id"
221+
t.integer "keyword_id"
222+
t.datetime "created_at", precision: nil
223+
t.datetime "updated_at", precision: nil
224+
end
225+
226+
create_table "users", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
214227
t.string "uid"
215228
t.string "name"
216229
t.string "email"
@@ -231,6 +244,5 @@
231244
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
232245
end
233246

234-
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
235247
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
236248
end

0 commit comments

Comments
 (0)