1
0
Fork 0
forked from OpenNeo/impress

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
parent b8559f33cb
commit 264ea37e1a
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
@ -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 add_index "species_translations", ["species_id"], name: "index_species_translations_on_species_id", using: :btree
create_table "swf_assets", force: true do |t| create_table "swf_assets", force: true do |t|
t.string "type", limit: 7, null: false t.string "type", limit: 7, null: false
t.integer "remote_id", limit: 3, null: false t.integer "remote_id", limit: 3, null: false
t.text "url", limit: 16777215, null: false t.text "url", limit: 16777215, null: false
t.integer "zone_id", limit: 1, null: false t.integer "zone_id", limit: 1, null: false
t.text "zones_restrict", null: false t.text "zones_restrict", null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.integer "body_id", limit: 2, null: false t.integer "body_id", limit: 2, null: false
t.boolean "has_image", default: false, null: false t.boolean "has_image", default: false, null: false
t.boolean "image_requested", default: false, null: false t.boolean "image_requested", default: false, null: false
t.datetime "reported_broken_at" t.datetime "reported_broken_at"
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
add_index "swf_assets", ["body_id"], name: "swf_assets_body_id_and_object_id", using: :btree 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" 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