Permalink
Browse files

also added the necessary db migration

  • Loading branch information...
1 parent adab22d commit 18cb4163e7a2ca83d8dd9103d842a64c666f7585 @syntacticvexation committed Mar 12, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 db/migrate/20120311164944_add_coderwall_display_in_profile_to_users.rb
@@ -0,0 +1,12 @@
+class AddCoderwallDisplayInProfileToUsers < ActiveRecord::Migration
+ def self.up
+ change_table :users do |t|
+ t.boolean :coderwall_display_in_profile, :default => false
+ end
+ User.update_all ["coderwall_display_in_profile = ?", false]
+ end
+
+ def self.down
+ remove_column :users, :coderwall_display_in_profile
+ end
+end

0 comments on commit 18cb416

Please sign in to comment.