socialforge/db/migrate/106_remove_projects_project...

10 lines
219 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
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