socialforge/db/migrate/20140424022002_remove_budge...

11 lines
229 B
Ruby
Raw Permalink Normal View History

class RemoveBudgetFromContests < ActiveRecord::Migration
def self.up
change_column :contests, :budget, :string, :default => ""
end
def self.down
change_column :contests, :budget, :integer, :default => 0
end
end