aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/086_allow_null_profile_photo_user.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/086_allow_null_profile_photo_user.rb b/db/migrate/086_allow_null_profile_photo_user.rb
new file mode 100644
index 000000000..f4e107848
--- /dev/null
+++ b/db/migrate/086_allow_null_profile_photo_user.rb
@@ -0,0 +1,9 @@
+class AllowNullProfilePhotoUser < ActiveRecord::Migration
+ def self.up
+ change_column :profile_photos, :user_id, :integer, :null => true
+ end
+
+ def self.down
+ raise "No reverse migration"
+ end
+end