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
This commit is contained in:
Matchu 2023-08-02 13:05:30 -07:00 committed by Matchu
parent 93c596007d
commit 38f3c9894c
4 changed files with 33 additions and 43 deletions

View file

@ -1,5 +0,0 @@
class WardrobeTip < ActiveRecord::Base
translates :body
scope :by_index, -> { order('`index` ASC') }
end

View file

@ -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

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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| create_table "auth_servers", force: true do |t|
t.string "short_name", limit: 10, null: false t.string "short_name", limit: 10, null: false
@ -278,7 +278,7 @@ ActiveRecord::Schema.define(version: 20230729181111) do
t.datetime "converted_at" t.datetime "converted_at"
t.boolean "image_manual", default: false, null: false t.boolean "image_manual", default: false, null: false
t.text "manifest", limit: 16777215 t.text "manifest", limit: 16777215
t.datetime "manifest_cached_at" t.timestamp "manifest_cached_at"
t.string "known_glitches", limit: 128, default: "" t.string "known_glitches", limit: 128, default: ""
end end
@ -300,23 +300,6 @@ ActiveRecord::Schema.define(version: 20230729181111) do
t.integer "contact_neopets_connection_id" t.integer "contact_neopets_connection_id"
end 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| create_table "zone_translations", force: true do |t|
t.integer "zone_id" t.integer "zone_id"
t.string "locale" t.string "locale"

View file

@ -1,5 +0,0 @@
require 'spec_helper'
describe WardrobeTip do
pending "add some examples to (or delete) #{__FILE__}"
end