bigdir/db/migrate/051_add_project_status.rb

10 lines
208 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddProjectStatus < ActiveRecord::Migration
def self.up
add_column :projects, :status, :integer, :default => 1, :null => false
end
def self.down
remove_column :projects, :status
end
end