From 32b1608346edcf3ee5d6fdf716d371c53b8d79ef Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 29 Jul 2023 11:19:37 -0700 Subject: [PATCH] Drop NewsPosts model We never ended up really using this lol, and it has an attr_accessible I want to be rid of so let's just fully trash it while we're at it! --- app/assets/stylesheets/outfits/_new.sass | 13 - app/controllers/outfits_controller.rb | 2 - app/models/news_post.rb | 3 - app/views/outfits/new.html.haml | 3 - db/migrate/20230729181111_drop_news_posts.rb | 10 + db/schema.rb | 407 ++++++++----------- spec/models/news_post_spec.rb | 5 - 7 files changed, 186 insertions(+), 257 deletions(-) delete mode 100644 app/models/news_post.rb create mode 100644 db/migrate/20230729181111_drop_news_posts.rb delete mode 100644 spec/models/news_post_spec.rb diff --git a/app/assets/stylesheets/outfits/_new.sass b/app/assets/stylesheets/outfits/_new.sass index 12f9c30d..051d875d 100644 --- a/app/assets/stylesheets/outfits/_new.sass +++ b/app/assets/stylesheets/outfits/_new.sass @@ -3,19 +3,6 @@ body.outfits-new +campaign-progress - .news-post - p:last-child - margin-bottom: 0 - - &.campaign-supplement - +flash - background: $campaign-background-color - border: 1px solid $campaign-border-color - color: $campaign-text-color - - a - color: $campaign-link-color - #pet-not-found, #neopia-error display: none diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index d0a836dc..63bac124 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -79,8 +79,6 @@ class OutfitsController < ApplicationController @neopets_usernames = user_signed_in? ? current_user.neopets_usernames : [] @campaign = Campaign.current rescue nil - - @news_posts = NewsPost.all end def show diff --git a/app/models/news_post.rb b/app/models/news_post.rb deleted file mode 100644 index 5b5bdf53..00000000 --- a/app/models/news_post.rb +++ /dev/null @@ -1,3 +0,0 @@ -class NewsPost < ActiveRecord::Base - attr_accessible :body, :html_class -end diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index f9ff09f3..4128b649 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -2,9 +2,6 @@ = advertise_campaign_progress @campaign -- @news_posts.each do |news_post| - .news-post{class: news_post.html_class}= md news_post.body - %p#pet-not-found.alert= t 'pets.load.not_found' %p#neopia-error.alert= t 'pets.load.neopia_error' diff --git a/db/migrate/20230729181111_drop_news_posts.rb b/db/migrate/20230729181111_drop_news_posts.rb new file mode 100644 index 00000000..1d4d4d6c --- /dev/null +++ b/db/migrate/20230729181111_drop_news_posts.rb @@ -0,0 +1,10 @@ +class DropNewsPosts < ActiveRecord::Migration + def change + drop_table :news_posts do |t| + t.text :body + t.string :html_class, default: 'success' + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index b12d38a4..84e07238 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,77 +9,62 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended to 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 => 20180509210338) do +ActiveRecord::Schema.define(version: 20230729181111) do - create_table "auth_servers", :force => true do |t| - t.string "short_name", :limit => 10, :null => false - t.string "name", :limit => 40, :null => false - t.text "icon", :limit => 16777215, :null => false - t.text "gateway", :limit => 16777215, :null => false - t.string "secret", :limit => 64, :null => false + create_table "auth_servers", force: true do |t| + t.string "short_name", limit: 10, null: false + t.string "name", limit: 40, null: false + t.text "icon", limit: 16777215, null: false + t.text "gateway", limit: 16777215, null: false + t.string "secret", limit: 64, null: false end - create_table "campaign_translations", :force => true do |t| - t.integer "campaign_id" - t.string "locale" - t.string "progress_bar_message" - t.datetime "created_at" - t.datetime "updated_at" - end - - add_index "campaign_translations", ["campaign_id"], :name => "index_campaign_translations_on_campaign_id" - add_index "campaign_translations", ["locale"], :name => "index_campaign_translations_on_locale" - - create_table "campaigns", :force => true do |t| - t.integer "progress", :null => false - t.integer "goal", :null => false - t.boolean "active", :null => false - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - t.boolean "advertised", :default => true, :null => false - t.text "description", :null => false - t.string "purpose", :default => "our hosting costs this year", :null => false - t.string "theme_id", :default => "hug", :null => false + create_table "campaigns", force: true do |t| + t.integer "progress", default: 0, null: false + t.integer "goal", null: false + t.boolean "active", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "advertised", default: true, null: false + t.text "description", null: false + t.string "purpose", default: "our hosting costs this year", null: false + t.string "theme_id", default: "hug", null: false t.text "thanks" t.string "name" end - create_table "campaigns_old", :force => true do |t| - t.integer "goal_cents", :null => false - t.integer "progress_cents", :null => false - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "closet_hangers", :force => true do |t| + create_table "closet_hangers", force: true do |t| t.integer "item_id" t.integer "user_id" t.integer "quantity" t.datetime "created_at" t.datetime "updated_at" - t.boolean "owned", :default => true, :null => false + t.boolean "owned", default: true, null: false t.integer "list_id" end - add_index "closet_hangers", ["item_id", "owned"], :name => "index_closet_hangers_on_item_id_and_owned" - add_index "closet_hangers", ["list_id"], :name => "index_closet_hangers_on_list_id" - add_index "closet_hangers", ["user_id"], :name => "index_closet_hangers_on_user_id" + add_index "closet_hangers", ["item_id", "owned"], name: "index_closet_hangers_on_item_id_and_owned", using: :btree + add_index "closet_hangers", ["list_id"], name: "index_closet_hangers_on_list_id", using: :btree + add_index "closet_hangers", ["user_id", "list_id", "item_id", "owned", "created_at"], name: "index_closet_hangers_test_20131226", using: :btree + add_index "closet_hangers", ["user_id", "owned", "item_id"], name: "index_closet_hangers_on_user_id_and_owned_and_item_id", using: :btree + add_index "closet_hangers", ["user_id", "owned", "list_id", "updated_at"], name: "index_closet_hangers_for_last_trade_activity", using: :btree + add_index "closet_hangers", ["user_id"], name: "index_closet_hangers_on_user_id", using: :btree - create_table "closet_lists", :force => true do |t| + create_table "closet_lists", force: true do |t| t.string "name" t.text "description" t.integer "user_id" - t.boolean "hangers_owned", :null => false + t.boolean "hangers_owned", null: false t.datetime "created_at" t.datetime "updated_at" - t.integer "visibility", :default => 1, :null => false + t.integer "visibility", default: 1, null: false end - add_index "closet_lists", ["user_id"], :name => "index_closet_lists_on_user_id" + add_index "closet_lists", ["user_id"], name: "index_closet_lists_on_user_id", using: :btree - create_table "color_translations", :force => true do |t| + create_table "color_translations", force: true do |t| t.integer "color_id" t.string "locale" t.string "name" @@ -87,61 +72,45 @@ ActiveRecord::Schema.define(:version => 20180509210338) do t.datetime "updated_at" end - add_index "color_translations", ["color_id"], :name => "index_color_translations_on_color_id" - add_index "color_translations", ["locale"], :name => "index_color_translations_on_locale" + add_index "color_translations", ["color_id"], name: "index_color_translations_on_color_id", using: :btree + add_index "color_translations", ["locale"], name: "index_color_translations_on_locale", using: :btree - create_table "colors", :force => true do |t| + create_table "colors", force: true do |t| t.boolean "basic" t.boolean "standard" - t.boolean "prank", :default => false, :null => false + t.boolean "prank", default: false, null: false end - create_table "contributions", :force => true do |t| - t.string "contributed_type", :limit => 8, :null => false - t.integer "contributed_id", :null => false - t.integer "user_id", :null => false - t.datetime "created_at", :null => false + create_table "contributions", force: true do |t| + t.string "contributed_type", limit: 8, null: false + t.integer "contributed_id", null: false + t.integer "user_id", null: false + t.datetime "created_at", null: false end - add_index "contributions", ["contributed_id", "contributed_type"], :name => "index_contributions_on_contributed_id_and_contributed_type" - add_index "contributions", ["user_id"], :name => "index_contributions_on_user_id" + add_index "contributions", ["contributed_id", "contributed_type"], name: "index_contributions_on_contributed_id_and_contributed_type", using: :btree + add_index "contributions", ["user_id"], name: "index_contributions_on_user_id", using: :btree - create_table "donation_features", :force => true do |t| - t.integer "donation_id", :null => false + create_table "donation_features", force: true do |t| + t.integer "donation_id", null: false t.integer "outfit_id" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table "donations", :force => true do |t| - t.integer "amount", :null => false - t.string "charge_id", :null => false + create_table "donations", force: true do |t| + t.integer "amount", null: false + t.string "charge_id", null: false t.integer "user_id" t.string "donor_name" t.string "secret" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "donor_email" - t.integer "campaign_id", :null => false + t.integer "campaign_id", null: false end - create_table "donations_old", :force => true do |t| - t.integer "amount_cents", :null => false - t.integer "campaign_id", :null => false - t.integer "user_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "forums", :force => true do |t| - t.string "name" - t.text "description" - t.datetime "created_at" - t.datetime "updated_at" - t.integer "sort_index" - end - - create_table "item_outfit_relationships", :force => true do |t| + create_table "item_outfit_relationships", force: true do |t| t.integer "item_id" t.integer "outfit_id" t.boolean "is_worn" @@ -149,10 +118,10 @@ ActiveRecord::Schema.define(:version => 20180509210338) do t.datetime "updated_at" end - add_index "item_outfit_relationships", ["item_id"], :name => "index_item_outfit_relationships_on_item_id" - add_index "item_outfit_relationships", ["outfit_id", "is_worn"], :name => "index_item_outfit_relationships_on_outfit_id_and_is_worn" + add_index "item_outfit_relationships", ["item_id"], name: "index_item_outfit_relationships_on_item_id", using: :btree + add_index "item_outfit_relationships", ["outfit_id", "is_worn"], name: "index_item_outfit_relationships_on_outfit_id_and_is_worn", using: :btree - create_table "item_translations", :force => true do |t| + create_table "item_translations", force: true do |t| t.integer "item_id" t.string "locale" t.string "name" @@ -162,144 +131,129 @@ ActiveRecord::Schema.define(:version => 20180509210338) do t.datetime "updated_at" end - add_index "item_translations", ["item_id"], :name => "index_item_translations_on_item_id" - add_index "item_translations", ["locale"], :name => "index_item_translations_on_locale" - add_index "item_translations", ["name"], :name => "index_item_translations_name" + add_index "item_translations", ["item_id", "locale"], name: "index_item_translations_on_item_id_and_locale", using: :btree + add_index "item_translations", ["item_id"], name: "index_item_translations_on_item_id", using: :btree + add_index "item_translations", ["locale"], name: "index_item_translations_on_locale", using: :btree + add_index "item_translations", ["name"], name: "index_item_translations_name", using: :btree - create_table "items", :force => true do |t| - t.text "zones_restrict", :null => false - t.text "thumbnail_url", :limit => 16777215, :null => false - t.string "category", :limit => 50 - t.string "type", :limit => 50 - t.integer "rarity_index", :limit => 2 - t.integer "price", :limit => 3, :null => false - t.integer "weight_lbs", :limit => 2 - t.text "species_support_ids", :limit => 16777215 - t.boolean "sold_in_mall", :null => false + create_table "items", force: true do |t| + t.text "zones_restrict", null: false + t.text "thumbnail_url", limit: 16777215, null: false + t.string "category", limit: 50 + t.string "type", limit: 50 + t.integer "rarity_index", limit: 2 + t.integer "price", limit: 3, null: false + t.integer "weight_lbs", limit: 2 + t.text "species_support_ids", limit: 16777215 + t.boolean "sold_in_mall", default: false, null: false t.datetime "last_spidered" t.datetime "created_at" t.datetime "updated_at" - t.boolean "explicitly_body_specific", :default => false, :null => false + t.boolean "explicitly_body_specific", default: false, null: false t.integer "manual_special_color_id" + t.string "modeling_status_hint", limit: 7 + t.boolean "is_manually_nc", default: false, null: false end - add_index "items", ["last_spidered"], :name => "objects_last_spidered" + add_index "items", ["last_spidered"], name: "objects_last_spidered", using: :btree + add_index "items", ["modeling_status_hint", "created_at", "id"], name: "items_modeling_status_hint_and_created_at_and_id", using: :btree + add_index "items", ["modeling_status_hint", "created_at"], name: "items_modeling_status_hint_and_created_at", using: :btree + add_index "items", ["modeling_status_hint", "id"], name: "items_modeling_status_hint_and_id", using: :btree + add_index "items", ["modeling_status_hint"], name: "items_modeling_status_hint", using: :btree - create_table "login_cookies", :force => true do |t| - t.integer "user_id", :null => false - t.integer "series", :null => false - t.integer "token", :null => false + create_table "login_cookies", force: true do |t| + t.integer "user_id", null: false + t.integer "series", null: false + t.integer "token", null: false end - add_index "login_cookies", ["user_id", "series"], :name => "login_cookies_user_id_and_series" - add_index "login_cookies", ["user_id"], :name => "login_cookies_user_id" + add_index "login_cookies", ["user_id", "series"], name: "login_cookies_user_id_and_series", using: :btree + add_index "login_cookies", ["user_id"], name: "login_cookies_user_id", using: :btree - create_table "neopets_connections", :force => true do |t| + create_table "modeling_logs", force: true do |t| + t.timestamp "created_at", null: false + t.text "log_json", null: false + t.string "pet_name", limit: 128, null: false + end + + create_table "neopets_connections", force: true do |t| t.integer "user_id" t.string "neopets_username" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table "news_posts", :force => true do |t| - t.text "body" - t.string "html_class", :default => "success" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "outfit_features", :force => true do |t| - t.integer "donation_id" - t.integer "outfit_id" - t.boolean "approved", :default => false, :null => false - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "outfit_features_old", :force => true do |t| - t.integer "outfit_id", :null => false - t.datetime "created_at" - t.datetime "updated_at" - t.date "frontpage_start_date" - t.date "frontpage_end_date" - end - - create_table "outfits", :force => true do |t| + create_table "outfits", force: true do |t| t.integer "pet_state_id" t.integer "user_id" t.datetime "created_at" t.datetime "updated_at" t.string "name" - t.boolean "starred", :default => false, :null => false + t.boolean "starred", default: false, null: false t.string "image" t.string "image_layers_hash" - t.boolean "image_enqueued", :default => false, :null => false - t.boolean "image_dirty", :default => false, :null => false + t.boolean "image_enqueued", default: false, null: false end - add_index "outfits", ["pet_state_id"], :name => "index_outfits_on_pet_state_id" - add_index "outfits", ["user_id"], :name => "index_outfits_on_user_id" + add_index "outfits", ["pet_state_id"], name: "index_outfits_on_pet_state_id", using: :btree + add_index "outfits", ["user_id"], name: "index_outfits_on_user_id", using: :btree - create_table "parents_swf_assets", :force => true do |t| - t.integer "parent_id", :limit => 3, :null => false - t.integer "swf_asset_id", :limit => 3, :null => false - t.string "parent_type", :limit => 8, :null => false + create_table "parents_swf_assets", force: true do |t| + t.integer "parent_id", limit: 3, null: false + t.integer "swf_asset_id", limit: 3, null: false + t.string "parent_type", limit: 8, null: false end - add_index "parents_swf_assets", ["parent_id", "parent_type"], :name => "index_parents_swf_assets_on_parent_id_and_parent_type" - add_index "parents_swf_assets", ["parent_id", "swf_asset_id"], :name => "unique_parents_swf_assets", :unique => true - add_index "parents_swf_assets", ["swf_asset_id"], :name => "parents_swf_assets_swf_asset_id" + add_index "parents_swf_assets", ["parent_id", "parent_type"], name: "index_parents_swf_assets_on_parent_id_and_parent_type", using: :btree + add_index "parents_swf_assets", ["parent_id", "swf_asset_id"], name: "unique_parents_swf_assets", unique: true, using: :btree + add_index "parents_swf_assets", ["swf_asset_id"], name: "parents_swf_assets_swf_asset_id", using: :btree - create_table "pet_loads", :force => true do |t| - t.string "pet_name", :limit => 20, :null => false - t.text "amf", :limit => 16777215, :null => false - t.datetime "created_at", :null => false + create_table "pet_loads", force: true do |t| + t.string "pet_name", limit: 20, null: false + t.text "amf", limit: 16777215, null: false + t.datetime "created_at", null: false end - create_table "pet_states", :force => true do |t| - t.integer "pet_type_id", :limit => 3, :null => false - t.text "swf_asset_ids", :null => false + create_table "pet_states", force: true do |t| + t.integer "pet_type_id", limit: 3, null: false + t.text "swf_asset_ids", null: false t.boolean "female" t.integer "mood_id" t.boolean "unconverted" - t.boolean "labeled", :default => false, :null => false - t.boolean "glitched", :default => false, :null => false + t.boolean "labeled", default: false, null: false + t.boolean "glitched", default: false, null: false t.string "artist_neopets_username" end - add_index "pet_states", ["pet_type_id"], :name => "pet_states_pet_type_id" + add_index "pet_states", ["pet_type_id"], name: "pet_states_pet_type_id", using: :btree - create_table "pet_types", :force => true do |t| - t.integer "color_id", :limit => 1, :null => false - t.integer "species_id", :limit => 1, :null => false - t.datetime "created_at", :null => false - t.integer "body_id", :limit => 2, :null => false - t.string "image_hash", :limit => 8 + create_table "pet_types", force: true do |t| + t.integer "color_id", limit: 1, null: false + t.integer "species_id", limit: 1, null: false + t.datetime "created_at", null: false + t.integer "body_id", limit: 2, null: false + t.string "image_hash", limit: 8 t.string "basic_image_hash" end - add_index "pet_types", ["species_id", "color_id"], :name => "pet_types_species_color", :unique => true + add_index "pet_types", ["body_id", "color_id", "species_id"], name: "pet_types_body_id_and_color_id_and_species_id", using: :btree + add_index "pet_types", ["body_id"], name: "pet_types_body_id", using: :btree + add_index "pet_types", ["color_id", "species_id"], name: "pet_types_color_id_and_species_id", using: :btree + add_index "pet_types", ["color_id"], name: "pet_types_color_id", using: :btree + add_index "pet_types", ["species_id", "color_id"], name: "pet_types_species_color", unique: true, using: :btree - create_table "pets", :force => true do |t| - t.string "name", :limit => 20, :null => false - t.integer "pet_type_id", :limit => 3, :null => false + create_table "pets", force: true do |t| + t.string "name", limit: 20, null: false + t.integer "pet_type_id", limit: 3, null: false end - add_index "pets", ["name"], :name => "pets_name", :unique => true - add_index "pets", ["pet_type_id"], :name => "pets_pet_type_id" + add_index "pets", ["name"], name: "pets_name", unique: true, using: :btree + add_index "pets", ["pet_type_id"], name: "pets_pet_type_id", using: :btree - create_table "posts", :force => true do |t| - t.integer "topic_id" - t.integer "user_id" - t.text "body" - t.datetime "created_at" - t.datetime "updated_at" + create_table "species", force: true do |t| end - create_table "species", :force => true do |t| - end - - create_table "species_translations", :force => true do |t| + create_table "species_translations", force: true do |t| t.integer "species_id" t.string "locale" t.string "name" @@ -307,72 +261,63 @@ ActiveRecord::Schema.define(:version => 20180509210338) do t.datetime "updated_at" end - add_index "species_translations", ["locale"], :name => "index_species_translations_on_locale" - add_index "species_translations", ["species_id"], :name => "index_species_translations_on_species_id" + add_index "species_translations", ["locale"], name: "index_species_translations_on_locale", 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| - 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 + 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.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" - add_index "swf_assets", ["type", "remote_id"], :name => "swf_assets_type_and_id" - add_index "swf_assets", ["zone_id"], :name => "idx_swf_assets_zone_id" + add_index "swf_assets", ["body_id"], name: "swf_assets_body_id_and_object_id", using: :btree + add_index "swf_assets", ["type", "remote_id"], name: "swf_assets_type_and_id", using: :btree + add_index "swf_assets", ["zone_id"], name: "idx_swf_assets_zone_id", using: :btree - create_table "topics", :force => true do |t| - t.string "title" - t.integer "user_id" - t.datetime "created_at" - t.datetime "updated_at" - t.integer "forum_id" - t.integer "original_post_id" - end - - create_table "users", :force => true do |t| - t.string "name", :limit => 20, :null => false - t.integer "auth_server_id", :limit => 1, :null => false - t.integer "remote_id", :null => false - t.integer "points", :default => 0, :null => false - t.boolean "beta", :default => false, :null => false + create_table "users", force: true do |t| + t.string "name", limit: 20, null: false + t.integer "auth_server_id", limit: 1, null: false + t.integer "remote_id", null: false + t.integer "points", default: 0, null: false + t.boolean "beta", default: false, null: false t.string "remember_token" t.datetime "remember_created_at" - t.boolean "forum_admin", :default => false, :null => false - t.boolean "forum_moderator" - t.boolean "image_mode_tester", :default => false, :null => false - t.text "closet_description", :null => false - t.integer "owned_closet_hangers_visibility", :default => 1, :null => false - t.integer "wanted_closet_hangers_visibility", :default => 1, :null => false + t.boolean "image_mode_tester", default: false, null: false + t.integer "owned_closet_hangers_visibility", default: 1, null: false + t.integer "wanted_closet_hangers_visibility", default: 1, null: false t.integer "contact_neopets_connection_id" end - create_table "wardrobe_tip_translations", :force => true do |t| + 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 + 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" - add_index "wardrobe_tip_translations", ["wardrobe_tip_id"], :name => "index_wardrobe_tip_translations_on_wardrobe_tip_id" + 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 + 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.string "locale" t.string "label" @@ -381,10 +326,10 @@ ActiveRecord::Schema.define(:version => 20180509210338) do t.datetime "updated_at" end - add_index "zone_translations", ["locale"], :name => "index_zone_translations_on_locale" - add_index "zone_translations", ["zone_id"], :name => "index_zone_translations_on_zone_id" + add_index "zone_translations", ["locale"], name: "index_zone_translations_on_locale", using: :btree + add_index "zone_translations", ["zone_id"], name: "index_zone_translations_on_zone_id", using: :btree - create_table "zones", :force => true do |t| + create_table "zones", force: true do |t| t.integer "depth" t.integer "type_id" end diff --git a/spec/models/news_post_spec.rb b/spec/models/news_post_spec.rb deleted file mode 100644 index 000af5af..00000000 --- a/spec/models/news_post_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe NewsPost do - pending "add some examples to (or delete) #{__FILE__}" -end