104_add_projects_lft_and_rgt.rb
11 lines
| 250 B
| text/x-ruby
|
RubyLexer
|
r2302 | class AddProjectsLftAndRgt < ActiveRecord::Migration | ||
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 | ||||