Sha256: 4bb24fddec547ba0b637cec889fa4e2d8ee8debb25c3e0b15f28dc9d57a7686e

Contents?: true

Size: 432 Bytes

Versions: 6

Compression:

Stored size: 432 Bytes

Contents

class ChangeBlogURL < ActiveRecord::Migration[5.1]
  def up
    if Setting[:rss_url] == 'https://access.redhat.com/blogs/1169563/feed'
      Setting[:rss_url] = 'https://www.redhat.com/en/rss/blog/channel/red-hat-satellite'
    end
  end

  def down
    if Setting[:rss_url] == 'https://www.redhat.com/en/rss/blog/channel/red-hat-satellite'
      Setting[:rss_url] = 'https://access.redhat.com/blogs/1169563/feed'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_theme_satellite-14.3.1 db/migrate/20181108171732_change_blog_url.rb
foreman_theme_satellite-14.3.0 db/migrate/20181108171732_change_blog_url.rb
foreman_theme_satellite-14.2.0 db/migrate/20181108171732_change_blog_url.rb
foreman_theme_satellite-14.1.0 db/migrate/20181108171732_change_blog_url.rb
foreman_theme_satellite-14.0.1 db/migrate/20181108171732_change_blog_url.rb
foreman_theme_satellite-14.0.0 db/migrate/20181108171732_change_blog_url.rb