Sha256: 33127701a769ee7340417b913afdd0f6f73805faabc23a96e150edbe24221566

Contents?: true

Size: 401 Bytes

Versions: 7

Compression:

Stored size: 401 Bytes

Contents

class MoveFilterToMessageboards < ActiveRecord::Migration
  def up
    add_column :thredded_messageboards, :filter, :string, null: false, default: 'markdown'
    remove_column :thredded_messageboard_preferences, :filter
  end

  def down
    add_column :thredded_messageboard_preferences, :filter, :string, null: false, default: 'markdown'
    remove_column :thredded_messageboards, :filter
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thredded-0.0.12 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.10 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.9 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.8 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.7 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.6 db/migrate/20131026202621_move_filter_to_messageboards.rb
thredded-0.0.5 db/migrate/20131026202621_move_filter_to_messageboards.rb