Sha256: 08f15b977b4aaebb76f190d240a7de18f7cb6ca8beaf70985710e9aeb42b7106

Contents?: true

Size: 442 Bytes

Versions: 59

Compression:

Stored size: 442 Bytes

Contents

class ExtendSites < ActiveRecord::Migration
  def self.up
    if defined? Site
      add_column :sites, :reader_layout_id, :integer
      add_column :sites, :mail_from_name, :string
      add_column :sites, :mail_from_address, :string
    end
  end

  def self.down
    if defined? Site
      remove_column :sites, :reader_layout_id
      remove_column :sites, :mail_from_name
      remove_column :sites, :mail_from_address
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.15 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.14 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.13 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.11 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.10 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.9 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.8 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.7 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.5 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.4 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.3 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.2 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.1 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.0 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.0.rc4 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.0.rc3 db/migrate/002_extend_sites.rb
radiant-reader-extension-2.0.0.rc4 db/migrate/002_extend_sites.rb
radiant-reader-extension-1.3.13 db/migrate/002_extend_sites.rb
radiant-reader-extension-1.3.12 db/migrate/002_extend_sites.rb
radiant-reader-extension-1.3.11 db/migrate/002_extend_sites.rb