106_remove_projects_projects_count.rb
9 lines
| 219 B
| text/x-ruby
|
RubyLexer
|
r2303 | class RemoveProjectsProjectsCount < ActiveRecord::Migration | ||
def self.up | ||||
remove_column :projects, :projects_count | ||||
end | ||||
def self.down | ||||
add_column :projects, :projects_count, :integer, :default => 0 | ||||
end | ||||
end | ||||