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:
parent
93c596007d
commit
38f3c9894c
4 changed files with 33 additions and 43 deletions
|
@ -1,5 +0,0 @@
|
|||
class WardrobeTip < ActiveRecord::Base
|
||||
translates :body
|
||||
|
||||
scope :by_index, -> { order('`index` ASC') }
|
||||
end
|
17
db/migrate/20230802195548_drop_wardrobe_tips.rb
Normal file
17
db/migrate/20230802195548_drop_wardrobe_tips.rb
Normal 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
|
49
db/schema.rb
49
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"
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe WardrobeTip do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in a new issue