Skip to content

Commit

Permalink
Remove unneeded columns from db table.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols authored and parndt committed Dec 8, 2010
1 parent 46aa636 commit fbc09fc
Showing 1 changed file with 11 additions and 0 deletions.
@@ -0,0 +1,11 @@
class RemovePositionAndOpenFromInquiries < ActiveRecord::Migration
def self.up
remove_column :inquiries, :position
remove_column :inquiries, :open
end

def self.down
add_column :inquiries, :position, :integer
add_column :inquiries, :open, :boolean, :default => true
end
end

0 comments on commit fbc09fc

Please sign in to comment.