Class: CortexReaver::CommentsEnabledOnPagesSchema

Inherits:
Sequel::Migration
  • Object
show all
Defined in:
lib/cortex_reaver/migrations/015_page_comments.rb

Instance Method Summary collapse

Instance Method Details

#downObject



3
4
5
# File 'lib/cortex_reaver/migrations/015_page_comments.rb', line 3

def down
  alter_table(:pages) { drop_column :comments_enabled }
end

#upObject



7
8
9
# File 'lib/cortex_reaver/migrations/015_page_comments.rb', line 7

def up
  alter_table(:pages) { add_column :comments_enabled, :boolean, :default => false }
end