myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3035] trunk/db/migrate/095_add_spam_score_to_use


From: noreply
Subject: [myexperiment-hackers] [3035] trunk/db/migrate/095_add_spam_score_to_users.rb: added migration file for spam score
Date: Mon, 18 Jun 2012 09:56:35 +0000 (UTC)

Revision
3035
Author
dgc
Date
2012-06-18 09:56:35 +0000 (Mon, 18 Jun 2012)

Log Message

added migration file for spam score

Added Paths

Diff

Added: trunk/db/migrate/095_add_spam_score_to_users.rb (0 => 3035)


--- trunk/db/migrate/095_add_spam_score_to_users.rb	                        (rev 0)
+++ trunk/db/migrate/095_add_spam_score_to_users.rb	2012-06-18 09:56:35 UTC (rev 3035)
@@ -0,0 +1,14 @@
+# myExperiment: db/migrate/095_add_spam_score_to_users.rb
+#
+# Copyright (c) 2012 University of Manchester and the University of Southampton.
+# See license.txt for details.
+
+class AddSpamScoreToUsers < ActiveRecord::Migration
+  def self.up
+    add_column :users, :spam_score, :integer
+  end
+
+  def self.down
+    remove_column :users, :spam_score
+  end
+end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]