docbrown/db/migrate/20190801083510_add_published_to_podcasts.rb
Anna Buianova fabaeb5461 Introduced published field to podcasts (#3593)
* Published field for podcasts

* Add podcasts migration

* More specs for podcasts availability

* Show published in podcasts internal

* Update schema.rb with db:migrate
2019-08-01 09:29:13 -04:00

9 lines
229 B
Ruby

class AddPublishedToPodcasts < ActiveRecord::Migration[5.2]
class Podcast < ApplicationRecord; end
def change
add_column :podcasts, :published, :boolean, default: false
Podcast.update_all(published: true)
end
end