summaryrefslogtreecommitdiffstats
path: root/db/migrate/083_add_messages_sticky.rb
blob: 050999e327cb6ae2acf06ca2ff6dd9f5404c72ca (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

class AddMessagesSticky < ActiveRecord::Migration[4.2]
  def self.up
    add_column :messages, :sticky, :integer, :default => 0
  end

  def self.down
    remove_column :messages, :sticky
  end
end