Sha256: cb149dce45e03d2e36a6f9aab00951b1de478e6d7a17273a9c1b0fb4580e32ed

Contents?: true

Size: 588 Bytes

Versions: 30

Compression:

Stored size: 588 Bytes

Contents

class AddWhiteboardsToContent < ActiveRecord::Migration
  def self.up
    STDERR.puts "Adding whiteboard to articles, comments and pages"
    modify_tables_and_update([:add_column, :articles, :whiteboard, :text],
                             [:add_column, :comments, :whiteboard, :text],
                             [:add_column, :pages,    :whiteboard, :text])
  end

  def self.down
    STDERR.puts "Removing whiteboard from articles, comments and pages"
    remove_column :articles, :whiteboard
    remove_column :comments, :whiteboard
    remove_column :pages, :whiteboard
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
typo-5.0 db/migrate/019_add_whiteboards_to_content.rb
typo-5.0.3.98 db/migrate/019_add_whiteboards_to_content.rb
typo-5.1.2 db/migrate/019_add_whiteboards_to_content.rb
typo-5.1.1 db/migrate/019_add_whiteboards_to_content.rb
typo-5.1.3 db/migrate/019_add_whiteboards_to_content.rb
typo-5.1 db/migrate/019_add_whiteboards_to_content.rb
typo-5.1.98 db/migrate/019_add_whiteboards_to_content.rb
typo-5.2.98 db/migrate/019_add_whiteboards_to_content.rb
typo-5.2 db/migrate/019_add_whiteboards_to_content.rb
typo-5.3 db/migrate/019_add_whiteboards_to_content.rb