|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.2].define(version: 2025_09_06_172911) do |
| 13 | +ActiveRecord::Schema[8.0].define(version: 2025_11_07_222131) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
| 15 | + enable_extension "pg_catalog.plpgsql" |
15 | 16 | enable_extension "pgcrypto" |
16 | | - enable_extension "plpgsql" |
17 | 17 | enable_extension "postgis" |
18 | 18 |
|
19 | 19 | create_table "action_text_rich_texts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
|
350 | 350 | t.string "privacy", limit: 50, default: "private", null: false |
351 | 351 | t.boolean "visible", default: true, null: false |
352 | 352 | t.jsonb "content_area_settings", default: {}, null: false |
| 353 | + t.boolean "protected", default: false, null: false |
353 | 354 | t.index ["creator_id"], name: "by_better_together_content_blocks_creator" |
354 | 355 | t.index ["privacy"], name: "by_better_together_content_blocks_privacy" |
355 | 356 | end |
|
1180 | 1181 | t.string "url", null: false |
1181 | 1182 | t.string "time_zone", null: false |
1182 | 1183 | t.jsonb "settings", default: {}, null: false |
| 1184 | + t.uuid "creator_id" |
1183 | 1185 | t.index ["community_id"], name: "by_platform_community" |
| 1186 | + t.index ["creator_id"], name: "by_better_together_platforms_creator" |
1184 | 1187 | t.index ["host"], name: "index_better_together_platforms_on_host", unique: true, where: "(host IS TRUE)" |
1185 | 1188 | t.index ["identifier"], name: "index_better_together_platforms_on_identifier", unique: true |
1186 | 1189 | t.index ["privacy"], name: "by_platform_privacy" |
|
1554 | 1557 | add_foreign_key "better_together_platform_invitations", "better_together_roles", column: "community_role_id" |
1555 | 1558 | add_foreign_key "better_together_platform_invitations", "better_together_roles", column: "platform_role_id" |
1556 | 1559 | add_foreign_key "better_together_platforms", "better_together_communities", column: "community_id" |
| 1560 | + add_foreign_key "better_together_platforms", "better_together_people", column: "creator_id" |
1557 | 1561 | add_foreign_key "better_together_posts", "better_together_people", column: "creator_id" |
1558 | 1562 | add_foreign_key "better_together_reports", "better_together_people", column: "reporter_id" |
1559 | 1563 | add_foreign_key "better_together_role_resource_permissions", "better_together_resource_permissions", column: "resource_permission_id" |
|
0 commit comments