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