Skip to content

Commit b6f9fdd

Browse files
committed
refactor: remove obsolete migration files for children count and parent reference in checklist items
1 parent aa2307d commit b6f9fdd

File tree

4 files changed

+5
-148
lines changed

4 files changed

+5
-148
lines changed

db/migrate/20250901203000_add_children_count_to_checklist_items.rb

Lines changed: 0 additions & 37 deletions
This file was deleted.

db/migrate/20250901_add_children_count_to_checklist_items.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

db/migrate/20250901_add_parent_to_checklist_items.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

spec/dummy/db/schema.rb

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

13-
ActiveRecord::Schema[7.1].define(version: 2025_09_01_203002) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_09_01_203002) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pgcrypto"
1616
enable_extension "plpgsql"
@@ -33,7 +33,7 @@
3333
t.uuid "record_id", null: false
3434
t.uuid "blob_id", null: false
3535
t.datetime "created_at", null: false
36-
t.string "locale", null: false
36+
t.string "locale", default: "en", null: false
3737
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
3838
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
3939
t.index ["record_type", "record_id", "name", "locale"], name: "index_active_storage_attachments_on_record_and_name_and_locale", unique: true
@@ -871,20 +871,6 @@
871871
t.index ["pageable_type", "pageable_id"], name: "index_better_together_metrics_page_views_on_pageable"
872872
end
873873

874-
create_table "better_together_metrics_rich_text_links", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
875-
t.integer "lock_version", default: 0, null: false
876-
t.datetime "created_at", null: false
877-
t.datetime "updated_at", null: false
878-
t.uuid "rich_text_id", null: false
879-
t.string "url", null: false
880-
t.string "link_type", null: false
881-
t.boolean "external", null: false
882-
t.boolean "valid", default: false
883-
t.string "host"
884-
t.text "error_message"
885-
t.index ["rich_text_id"], name: "index_better_together_metrics_rich_text_links_on_rich_text_id"
886-
end
887-
888874
create_table "better_together_metrics_search_queries", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
889875
t.integer "lock_version", default: 0, null: false
890876
t.datetime "created_at", null: false
@@ -1024,29 +1010,6 @@
10241010
t.index ["role_id"], name: "person_community_membership_by_role"
10251011
end
10261012

1027-
create_table "better_together_person_platform_integrations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
1028-
t.integer "lock_version", default: 0, null: false
1029-
t.datetime "created_at", null: false
1030-
t.datetime "updated_at", null: false
1031-
t.string "provider", limit: 50, default: "", null: false
1032-
t.string "uid", limit: 50, default: "", null: false
1033-
t.string "name"
1034-
t.string "handle"
1035-
t.string "profile_url"
1036-
t.string "image_url"
1037-
t.string "access_token"
1038-
t.string "access_token_secret"
1039-
t.string "refresh_token"
1040-
t.datetime "expires_at"
1041-
t.jsonb "auth"
1042-
t.uuid "person_id"
1043-
t.uuid "platform_id"
1044-
t.uuid "user_id"
1045-
t.index ["person_id"], name: "bt_person_platform_conections_by_person"
1046-
t.index ["platform_id"], name: "bt_person_platform_conections_by_platform"
1047-
t.index ["user_id"], name: "bt_person_platform_conections_by_user"
1048-
end
1049-
10501013
create_table "better_together_person_platform_memberships", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
10511014
t.integer "lock_version", default: 0, null: false
10521015
t.datetime "created_at", null: false
@@ -1101,7 +1064,7 @@
11011064
t.uuid "inviter_id", null: false
11021065
t.uuid "platform_role_id"
11031066
t.string "status", limit: 20, null: false
1104-
t.string "locale", limit: 5, default: "es", null: false
1067+
t.string "locale", limit: 5, default: "en", null: false
11051068
t.string "token", limit: 24, null: false
11061069
t.datetime "valid_from", null: false
11071070
t.datetime "valid_until"
@@ -1132,8 +1095,9 @@
11321095
t.string "identifier", limit: 100, null: false
11331096
t.boolean "host", default: false, null: false
11341097
t.boolean "protected", default: false, null: false
1098+
t.uuid "community_id", null: false
11351099
t.string "privacy", limit: 50, default: "private", null: false
1136-
t.uuid "community_id"
1100+
t.string "slug"
11371101
t.string "url", null: false
11381102
t.string "time_zone", null: false
11391103
t.jsonb "settings", default: {}, null: false
@@ -1209,31 +1173,6 @@
12091173
t.index ["resource_type", "position"], name: "index_roles_on_resource_type_and_position", unique: true
12101174
end
12111175

1212-
create_table "better_together_seeds", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
1213-
t.integer "lock_version", default: 0, null: false
1214-
t.datetime "created_at", null: false
1215-
t.datetime "updated_at", null: false
1216-
t.string "type", default: "BetterTogether::Seed", null: false
1217-
t.string "seedable_type"
1218-
t.uuid "seedable_id"
1219-
t.uuid "creator_id"
1220-
t.string "identifier", limit: 100, null: false
1221-
t.string "privacy", limit: 50, default: "private", null: false
1222-
t.string "version", null: false
1223-
t.string "created_by", null: false
1224-
t.datetime "seeded_at", null: false
1225-
t.text "description", null: false
1226-
t.jsonb "origin", null: false
1227-
t.jsonb "payload", null: false
1228-
t.index ["creator_id"], name: "by_better_together_seeds_creator"
1229-
t.index ["identifier"], name: "index_better_together_seeds_on_identifier", unique: true
1230-
t.index ["origin"], name: "index_better_together_seeds_on_origin", using: :gin
1231-
t.index ["payload"], name: "index_better_together_seeds_on_payload", using: :gin
1232-
t.index ["privacy"], name: "by_better_together_seeds_privacy"
1233-
t.index ["seedable_type", "seedable_id"], name: "index_better_together_seeds_on_seedable"
1234-
t.index ["type", "identifier"], name: "index_better_together_seeds_on_type_and_identifier", unique: true
1235-
end
1236-
12371176
create_table "better_together_social_media_accounts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
12381177
t.integer "lock_version", default: 0, null: false
12391178
t.datetime "created_at", null: false
@@ -1476,7 +1415,6 @@
14761415
add_foreign_key "better_together_infrastructure_rooms", "better_together_communities", column: "community_id"
14771416
add_foreign_key "better_together_infrastructure_rooms", "better_together_infrastructure_floors", column: "floor_id"
14781417
add_foreign_key "better_together_infrastructure_rooms", "better_together_people", column: "creator_id"
1479-
add_foreign_key "better_together_invitations", "better_together_invitations", column: "primary_invitation_id"
14801418
add_foreign_key "better_together_invitations", "better_together_roles", column: "role_id"
14811419
add_foreign_key "better_together_joatu_agreements", "better_together_joatu_offers", column: "offer_id"
14821420
add_foreign_key "better_together_joatu_agreements", "better_together_joatu_requests", column: "request_id"
@@ -1487,7 +1425,6 @@
14871425
add_foreign_key "better_together_joatu_response_links", "better_together_people", column: "creator_id"
14881426
add_foreign_key "better_together_messages", "better_together_conversations", column: "conversation_id"
14891427
add_foreign_key "better_together_messages", "better_together_people", column: "sender_id"
1490-
add_foreign_key "better_together_metrics_rich_text_links", "action_text_rich_texts", column: "rich_text_id"
14911428
add_foreign_key "better_together_navigation_items", "better_together_navigation_areas", column: "navigation_area_id"
14921429
add_foreign_key "better_together_navigation_items", "better_together_navigation_items", column: "parent_id"
14931430
add_foreign_key "better_together_pages", "better_together_navigation_areas", column: "sidebar_nav_id"

0 commit comments

Comments
 (0)