diff --git a/db/migrate/20220928162321_remove_featured_number_from_articles.rb b/db/migrate/20220928162321_remove_featured_number_from_articles.rb new file mode 100644 index 0000000000000..167f574f6b9b1 --- /dev/null +++ b/db/migrate/20220928162321_remove_featured_number_from_articles.rb @@ -0,0 +1,7 @@ +class RemoveFeaturedNumberFromArticles < ActiveRecord::Migration[7.0] + def change + safety_assured do + remove_column :articles, :featured_number + end + end +end diff --git a/db/schema.rb b/db/schema.rb index ed5ca4689c410..745c7bb391acc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_09_19_222729) do +ActiveRecord::Schema[7.0].define(version: 2022_09_28_162321) do # These are extensions that must be enabled in order to support this database enable_extension "citext" enable_extension "pg_stat_statements" @@ -104,7 +104,6 @@ t.float "experience_level_rating", default: 5.0 t.float "experience_level_rating_distribution", default: 5.0 t.boolean "featured", default: false - t.integer "featured_number" t.string "feed_source_url" t.integer "hotness_score", default: 0 t.datetime "last_comment_at", precision: nil, default: "2017-01-01 05:00:00" @@ -158,7 +157,6 @@ t.index ["collection_id"], name: "index_articles_on_collection_id" t.index ["comment_score"], name: "index_articles_on_comment_score" t.index ["comments_count"], name: "index_articles_on_comments_count" - t.index ["featured_number"], name: "index_articles_on_featured_number" t.index ["feed_source_url"], name: "index_articles_on_feed_source_url", unique: true, where: "(published IS TRUE)" t.index ["feed_source_url"], name: "index_articles_on_feed_source_url_unscoped" t.index ["hotness_score", "comments_count"], name: "index_articles_on_hotness_score_and_comments_count"