Skip to content

Commit

Permalink
add point type migration
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed Sep 28, 2009
1 parent c0b9ac8 commit 8daa1e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions db/migrate/20090927173634_add_point_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class AddPointType < ActiveRecord::Migration
def self.up
add_column :points, :point_type, :string, :default => "0"
end

def self.down
remove_column :points, :point_type
end

end

0 comments on commit 8daa1e8

Please sign in to comment.