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.38 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.37 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.36 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.35 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.33 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.32 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.31 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.30 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.29 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.28 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.27 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.26 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.25 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.24 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.23 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.20 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.19 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.18 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.17 db/migrate/002_extend_sites.rb
radiant-reader-extension-3.0.16 db/migrate/002_extend_sites.rb