summaryrefslogtreecommitdiff
path: root/db/migrate/20120219210950_remove_state_from_user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20120219210950_remove_state_from_user.rb')
-rw-r--r--db/migrate/20120219210950_remove_state_from_user.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20120219210950_remove_state_from_user.rb b/db/migrate/20120219210950_remove_state_from_user.rb
new file mode 100644
index 0000000..3bb8f59
--- /dev/null
+++ b/db/migrate/20120219210950_remove_state_from_user.rb
@@ -0,0 +1,9 @@
+class RemoveStateFromUser < ActiveRecord::Migration
+ def up
+ remove_column :users, :state
+ end
+
+ def down
+ add_column :users, :state, :string
+ end
+end