Browse files

Adding migration for delta column

  • Loading branch information...
1 parent 81c67da commit 320b23fd02ac8a65ee7e1a889a3626f4c8d1785c @pat pat committed Sep 29, 2008
Showing with 11 additions and 0 deletions.
  1. +11 −0 db/migrate/20080929084336_add_delta_to_contacts.rb
View
11 db/migrate/20080929084336_add_delta_to_contacts.rb
@@ -0,0 +1,11 @@
+class AddDeltaToContacts < ActiveRecord::Migration
+ def self.up
+ add_column :contacts, :delta, :boolean, :default => false
+
+ add_index :contacts, :delta
+ end
+
+ def self.down
+ remove_column :contacts, :delta
+ end
+end

0 comments on commit 320b23f

Please sign in to comment.