* Published field for podcasts * Add podcasts migration * More specs for podcasts availability * Show published in podcasts internal * Update schema.rb with db:migrate
9 lines
229 B
Ruby
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
|