From 264ea37e1a7f176f338b91719fac3bacd61cbd0d Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Aug 2023 13:05:30 -0700 Subject: [PATCH] Delete WardrobeTip model lmao I have zero recollection of this, I've been generally trying to avoid too-far-off-the-path cleanup, but this one just seems silly, goodbye --- app/models/wardrobe_tip.rb | 5 -- .../20230802195548_drop_wardrobe_tips.rb | 17 +++++++ db/schema.rb | 49 ++++++------------- spec/models/wardrobe_tip_spec.rb | 5 -- 4 files changed, 33 insertions(+), 43 deletions(-) delete mode 100644 app/models/wardrobe_tip.rb create mode 100644 db/migrate/20230802195548_drop_wardrobe_tips.rb delete mode 100644 spec/models/wardrobe_tip_spec.rb diff --git a/app/models/wardrobe_tip.rb b/app/models/wardrobe_tip.rb deleted file mode 100644 index ae0c3178..00000000 --- a/app/models/wardrobe_tip.rb +++ /dev/null @@ -1,5 +0,0 @@ -class WardrobeTip < ActiveRecord::Base - translates :body - - scope :by_index, -> { order('`index` ASC') } -end diff --git a/db/migrate/20230802195548_drop_wardrobe_tips.rb b/db/migrate/20230802195548_drop_wardrobe_tips.rb new file mode 100644 index 00000000..112f7df2 --- /dev/null +++ b/db/migrate/20230802195548_drop_wardrobe_tips.rb @@ -0,0 +1,17 @@ +class DropWardrobeTips < ActiveRecord::Migration + def change + drop_table :wardrobe_tips do |t| + t.integer "index", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + drop_table :wardrobe_tip_translations do |t| + t.integer "wardrobe_tip_id" + t.string "locale" + t.text "body" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + end +end diff --git a/db/schema.rb b/db/schema.rb index c3cea44d..931f002c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20230729181111) do +ActiveRecord::Schema.define(version: 20230802195548) do create_table "auth_servers", force: true do |t| t.string "short_name", limit: 10, null: false @@ -265,21 +265,21 @@ ActiveRecord::Schema.define(version: 20230729181111) do add_index "species_translations", ["species_id"], name: "index_species_translations_on_species_id", using: :btree create_table "swf_assets", force: true do |t| - t.string "type", limit: 7, null: false - t.integer "remote_id", limit: 3, null: false - t.text "url", limit: 16777215, null: false - t.integer "zone_id", limit: 1, null: false - t.text "zones_restrict", null: false - t.datetime "created_at", null: false - t.integer "body_id", limit: 2, null: false - t.boolean "has_image", default: false, null: false - t.boolean "image_requested", default: false, null: false - t.datetime "reported_broken_at" - t.datetime "converted_at" - t.boolean "image_manual", default: false, null: false - t.text "manifest", limit: 16777215 - t.datetime "manifest_cached_at" - t.string "known_glitches", limit: 128, default: "" + t.string "type", limit: 7, null: false + t.integer "remote_id", limit: 3, null: false + t.text "url", limit: 16777215, null: false + t.integer "zone_id", limit: 1, null: false + t.text "zones_restrict", null: false + t.datetime "created_at", null: false + t.integer "body_id", limit: 2, null: false + t.boolean "has_image", default: false, null: false + t.boolean "image_requested", default: false, null: false + t.datetime "reported_broken_at" + t.datetime "converted_at" + t.boolean "image_manual", default: false, null: false + t.text "manifest", limit: 16777215 + t.timestamp "manifest_cached_at" + t.string "known_glitches", limit: 128, default: "" end add_index "swf_assets", ["body_id"], name: "swf_assets_body_id_and_object_id", using: :btree @@ -300,23 +300,6 @@ ActiveRecord::Schema.define(version: 20230729181111) do t.integer "contact_neopets_connection_id" end - create_table "wardrobe_tip_translations", force: true do |t| - t.integer "wardrobe_tip_id" - t.string "locale" - t.text "body" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "wardrobe_tip_translations", ["locale"], name: "index_wardrobe_tip_translations_on_locale", using: :btree - add_index "wardrobe_tip_translations", ["wardrobe_tip_id"], name: "index_wardrobe_tip_translations_on_wardrobe_tip_id", using: :btree - - create_table "wardrobe_tips", force: true do |t| - t.integer "index", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "zone_translations", force: true do |t| t.integer "zone_id" t.string "locale" diff --git a/spec/models/wardrobe_tip_spec.rb b/spec/models/wardrobe_tip_spec.rb deleted file mode 100644 index b6f69a5f..00000000 --- a/spec/models/wardrobe_tip_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe WardrobeTip do - pending "add some examples to (or delete) #{__FILE__}" -end