diff --git a/app/models/podcast_episode.rb b/app/models/podcast_episode.rb index 1cf747ba6..b178f53f2 100644 --- a/app/models/podcast_episode.rb +++ b/app/models/podcast_episode.rb @@ -1,10 +1,6 @@ class PodcastEpisode < ApplicationRecord self.ignored_columns = %w[ - deepgram_id_code duration_in_seconds - featured - featured_number - order_key ] include AlgoliaSearch diff --git a/db/migrate/20200407083732_remove_unused_columns_from_podcast_episodes.rb b/db/migrate/20200407083732_remove_unused_columns_from_podcast_episodes.rb new file mode 100644 index 000000000..d7a5a726f --- /dev/null +++ b/db/migrate/20200407083732_remove_unused_columns_from_podcast_episodes.rb @@ -0,0 +1,10 @@ +class RemoveUnusedColumnsFromPodcastEpisodes < ActiveRecord::Migration[5.2] + def change + safety_assured do + remove_column :podcast_episodes, :deepgram_id_code, :string + remove_column :podcast_episodes, :featured, :boolean, default: true + remove_column :podcast_episodes, :featured_number, :integer + remove_column :podcast_episodes, :order_key, :string + end + end +end diff --git a/db/schema.rb b/db/schema.rb index ae5b9ff2a..890670e87 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -762,16 +762,12 @@ ActiveRecord::Schema.define(version: 2020_04_07_091449) do t.text "body" t.integer "comments_count", default: 0, null: false t.datetime "created_at", null: false - t.string "deepgram_id_code" t.integer "duration_in_seconds" - t.boolean "featured", default: true - t.integer "featured_number" t.string "guid", null: false t.boolean "https", default: true t.string "image" t.string "itunes_url" t.string "media_url", null: false - t.string "order_key" t.integer "podcast_id" t.text "processed_html" t.datetime "published_at"