Skip to content

Commit

Permalink
Remove featured_number from articles table (forem#18514)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdocr authored Sep 29, 2022
1 parent a36e702 commit 3b575ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveFeaturedNumberFromArticles < ActiveRecord::Migration[7.0]
def change
safety_assured do
remove_column :articles, :featured_number
end
end
end
4 changes: 1 addition & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3b575ac

Please sign in to comment.