[80846] branches/gsoc11-statistics/stats-server/db/migrate

derek at macports.org derek at macports.org
Mon Jul 18 15:43:29 PDT 2011


Revision: 80846
          http://trac.macports.org/changeset/80846
Author:   derek at macports.org
Date:     2011-07-18 15:43:29 -0700 (Mon, 18 Jul 2011)
Log Message:
-----------
Remove month, year columns from installed_ports

Added Paths:
-----------
    branches/gsoc11-statistics/stats-server/db/migrate/20110718055012_remove_month_from_installed_ports.rb
    branches/gsoc11-statistics/stats-server/db/migrate/20110718055027_remove_year_from_installed_ports.rb

Added: branches/gsoc11-statistics/stats-server/db/migrate/20110718055012_remove_month_from_installed_ports.rb
===================================================================
--- branches/gsoc11-statistics/stats-server/db/migrate/20110718055012_remove_month_from_installed_ports.rb	                        (rev 0)
+++ branches/gsoc11-statistics/stats-server/db/migrate/20110718055012_remove_month_from_installed_ports.rb	2011-07-18 22:43:29 UTC (rev 80846)
@@ -0,0 +1,9 @@
+class RemoveMonthFromInstalledPorts < ActiveRecord::Migration
+  def self.up
+    remove_column :installed_ports, :month
+  end
+
+  def self.down
+    add_column :installed_ports, :month, :integer
+  end
+end

Added: branches/gsoc11-statistics/stats-server/db/migrate/20110718055027_remove_year_from_installed_ports.rb
===================================================================
--- branches/gsoc11-statistics/stats-server/db/migrate/20110718055027_remove_year_from_installed_ports.rb	                        (rev 0)
+++ branches/gsoc11-statistics/stats-server/db/migrate/20110718055027_remove_year_from_installed_ports.rb	2011-07-18 22:43:29 UTC (rev 80846)
@@ -0,0 +1,9 @@
+class RemoveYearFromInstalledPorts < ActiveRecord::Migration
+  def self.up
+    remove_column :installed_ports, :year
+  end
+
+  def self.down
+    add_column :installed_ports, :year, :integer
+  end
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110718/ffab5b2c/attachment-0001.html>


More information about the macports-changes mailing list