summaryrefslogtreecommitdiffstats
path: root/db/migrate/104_add_projects_lft_and_rgt.rb
blob: 77569fc4571c070009e026cd13ffd9c58dadb3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddProjectsLftAndRgt < ActiveRecord::Migration[4.2]
  def self.up
    add_column :projects, :lft, :integer
    add_column :projects, :rgt, :integer
  end

  def self.down
    remove_column :projects, :lft
    remove_column :projects, :rgt
  end
end