From 4d5fbc9ff30eae0fd2f5718cddb5735ef44a4300 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sun, 1 Jun 2025 12:27:07 -0400 Subject: [PATCH] Drop the action_text_markdowns table The model was removed in 10b2aad6 / fa04016c ref: https://37s.fizzy.37signals.com/collections/7/cards/731 --- ...250601161653_drop_action_text_markdowns.rb | 5 + db/schema.rb | 13 +- db/schema_cache.yml | 126 +++++------------- 3 files changed, 38 insertions(+), 106 deletions(-) create mode 100644 db/migrate/20250601161653_drop_action_text_markdowns.rb diff --git a/db/migrate/20250601161653_drop_action_text_markdowns.rb b/db/migrate/20250601161653_drop_action_text_markdowns.rb new file mode 100644 index 000000000..23a972df8 --- /dev/null +++ b/db/migrate/20250601161653_drop_action_text_markdowns.rb @@ -0,0 +1,5 @@ +class DropActionTextMarkdowns < ActiveRecord::Migration[8.1] + def change + drop_table :action_text_markdowns + end +end diff --git a/db/schema.rb b/db/schema.rb index 098674f3a..7acec01bd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2025_05_23_084734) do +ActiveRecord::Schema[8.1].define(version: 2025_06_01_161653) do create_table "accesses", force: :cascade do |t| t.integer "collection_id", null: false t.datetime "created_at", null: false @@ -29,16 +29,6 @@ ActiveRecord::Schema[8.1].define(version: 2025_05_23_084734) do t.datetime "updated_at", null: false end - create_table "action_text_markdowns", force: :cascade do |t| - t.text "content", default: "", null: false - t.datetime "created_at", null: false - t.string "name", null: false - t.integer "record_id", null: false - t.string "record_type", null: false - t.datetime "updated_at", null: false - t.index ["record_type", "record_id"], name: "index_action_text_markdowns_on_record" - end - create_table "action_text_rich_texts", force: :cascade do |t| t.text "body" t.datetime "created_at", null: false @@ -308,7 +298,6 @@ ActiveRecord::Schema[8.1].define(version: 2025_05_23_084734) do t.datetime "created_at", null: false t.string "title" t.datetime "updated_at", null: false - t.index ["title"], name: "index_tags_on_account_id_and_title", unique: true end create_table "users", force: :cascade do |t| diff --git a/db/schema_cache.yml b/db/schema_cache.yml index 6cd19a67c..e4a61d5f1 100644 --- a/db/schema_cache.yml +++ b/db/schema_cache.yml @@ -114,57 +114,22 @@ columns: collation: comment: - *9 - action_text_markdowns: + action_text_rich_texts: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: - name: content - cast_type: &11 !ruby/object:ActiveRecord::Type::Text + name: body + cast_type: &15 !ruby/object:ActiveRecord::Type::Text true: t false: f precision: scale: limit: - sql_type_metadata: &12 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata + sql_type_metadata: &16 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata sql_type: TEXT type: :text limit: precision: scale: - 'null': false - default: '' - default_function: - collation: - comment: - - *5 - - *6 - - *10 - - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column - auto_increment: - name: record_id - cast_type: *1 - sql_type_metadata: *2 - 'null': false - default: - default_function: - collation: - comment: - - &13 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column - auto_increment: - name: record_type - cast_type: *7 - sql_type_metadata: *8 - 'null': false - default: - default_function: - collation: - comment: - - *9 - action_text_rich_texts: - - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column - auto_increment: - name: body - cast_type: *11 - sql_type_metadata: *12 'null': true default: default_function: @@ -173,16 +138,16 @@ columns: - *5 - *6 - *10 - - &16 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column + - &13 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: record_id - cast_type: &14 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer + cast_type: &11 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer precision: scale: limit: max: 9223372036854775808 min: -9223372036854775808 - sql_type_metadata: &15 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata + sql_type_metadata: &12 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata sql_type: bigint type: :integer limit: @@ -193,14 +158,23 @@ columns: default_function: collation: comment: - - *13 + - &14 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column + auto_increment: + name: record_type + cast_type: *7 + sql_type_metadata: *8 + 'null': false + default: + default_function: + collation: + comment: - *9 active_storage_attachments: - &17 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: blob_id - cast_type: *14 - sql_type_metadata: *15 + cast_type: *11 + sql_type_metadata: *12 'null': false default: default_function: @@ -209,8 +183,8 @@ columns: - *5 - *6 - *10 - - *16 - *13 + - *14 - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: slug @@ -225,8 +199,8 @@ columns: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: byte_size - cast_type: *14 - sql_type_metadata: *15 + cast_type: *11 + sql_type_metadata: *12 'null': false default: default_function: @@ -277,8 +251,8 @@ columns: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: metadata - cast_type: *11 - sql_type_metadata: *12 + cast_type: *15 + sql_type_metadata: *16 'null': true default: default_function: @@ -445,8 +419,8 @@ columns: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: status - cast_type: *11 - sql_type_metadata: *12 + cast_type: *15 + sql_type_metadata: *16 'null': false default: creating default_function: @@ -524,8 +498,8 @@ columns: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: auto_close_period - cast_type: *14 - sql_type_metadata: *15 + cast_type: *11 + sql_type_metadata: *12 'null': true default: default_function: @@ -573,8 +547,8 @@ columns: - !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column auto_increment: name: line - cast_type: *11 - sql_type_metadata: *12 + cast_type: *15 + sql_type_metadata: *16 'null': true default: default_function: @@ -1005,7 +979,6 @@ columns: primary_keys: accesses: id accounts: id - action_text_markdowns: id action_text_rich_texts: id active_storage_attachments: id active_storage_blobs: id @@ -1044,7 +1017,6 @@ primary_keys: data_sources: accesses: true accounts: true - action_text_markdowns: true action_text_rich_texts: true active_storage_attachments: true active_storage_blobs: true @@ -1132,24 +1104,6 @@ indexes: comment: valid: true accounts: [] - action_text_markdowns: - - !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition - table: action_text_markdowns - name: index_action_text_markdowns_on_record - unique: false - columns: - - record_type - - record_id - lengths: {} - orders: {} - opclasses: {} - where: - type: - using: - include: - nulls_not_distinct: - comment: - valid: true action_text_rich_texts: - !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition table: action_text_rich_texts @@ -2098,23 +2052,7 @@ indexes: nulls_not_distinct: comment: valid: true - tags: - - !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition - table: tags - name: index_tags_on_account_id_and_title - unique: true - columns: - - title - lengths: {} - orders: {} - opclasses: {} - where: - type: - using: - include: - nulls_not_distinct: - comment: - valid: true + tags: [] users: - !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition table: users @@ -2199,4 +2137,4 @@ indexes: comment: valid: true workflows: [] -version: 20250523084734 +version: 20250601161653