myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2091] trunk: removal of simple_pages


From: noreply
Subject: [myexperiment-hackers] [2091] trunk: removal of simple_pages
Date: Fri, 6 Feb 2009 11:54:59 -0500 (EST)

Revision
2091
Author
dgc
Date
2009-02-06 11:54:58 -0500 (Fri, 06 Feb 2009)

Log Message

removal of simple_pages

Modified Paths

Removed Paths

Diff

Modified: trunk/config/routes.rb (2090 => 2091)


--- trunk/config/routes.rb	2009-02-05 18:45:26 UTC (rev 2090)
+++ trunk/config/routes.rb	2009-02-06 16:54:58 UTC (rev 2091)
@@ -210,9 +210,6 @@
   
   map.connect 'files/:id/download/:name', :controller => 'blobs', :action ="" 'named_download', :requirements => { :name => /.*/ }
   
-  # simple_pages plugin
-  map.from_plugin :simple_pages
-  
   # (general) announcements
   # NB! this is moved to the bottom of the file for it to be discovered
   # before 'announcements' resource within 'groups'

Modified: trunk/db/migrate/038_simple_pages_to_version_1.rb (2090 => 2091)


--- trunk/db/migrate/038_simple_pages_to_version_1.rb	2009-02-05 18:45:26 UTC (rev 2090)
+++ trunk/db/migrate/038_simple_pages_to_version_1.rb	2009-02-06 16:54:58 UTC (rev 2091)
@@ -1,9 +1,32 @@
+# myExperiment: db/migrate/001_create_users.rb
+#
+# Copyright (c) 2009 University of Manchester and the University of Southampton.
+# See license.txt for details.
+
 class SimplePagesToVersion1 < ActiveRecord::Migration
   def self.up
-    Rails.plugins["simple_pages"].migrate(1)
+    create_table "simple_page_versions", :force => true do |t|
+      t.column "simple_page_id", :integer
+      t.column "version",        :integer
+      t.column "filename",       :string
+      t.column "title",          :string
+      t.column "content",        :text
+      t.column "created_at",     :datetime
+      t.column "updated_at",     :datetime
+    end
+
+    create_table "simple_pages", :force => true do |t|
+      t.column "filename",   :string
+      t.column "title",      :string
+      t.column "content",    :text
+      t.column "created_at", :datetime
+      t.column "updated_at", :datetime
+      t.column "version",    :integer
+    end
   end
 
   def self.down
-    Rails.plugins["simple_pages"].migrate(0)
+    drop_table :simple_page_versions
+    drop_table :simple_pages
   end
 end

Modified: trunk/db/migrate/072_remove_public_protected_flags.rb (2090 => 2091)


--- trunk/db/migrate/072_remove_public_protected_flags.rb	2009-02-05 18:45:26 UTC (rev 2090)
+++ trunk/db/migrate/072_remove_public_protected_flags.rb	2009-02-06 16:54:58 UTC (rev 2091)
@@ -10,10 +10,10 @@
 
   def self.down
     add_column :policies, :download_public,    :boolean, :default => true
-    add_column :policies, :edit_public,        :boolean, :default => true
+    add_column :policies, :edit_public,        :boolean, :default => false
     add_column :policies, :view_public,        :boolean, :default => true
-    add_column :policies, :download_protected, :boolean, :default => true
-    add_column :policies, :edit_protected,     :boolean, :default => true
-    add_column :policies, :view_protected,     :boolean, :default => true
+    add_column :policies, :download_protected, :boolean, :default => false
+    add_column :policies, :edit_protected,     :boolean, :default => false
+    add_column :policies, :view_protected,     :boolean, :default => false
   end
 end

reply via email to

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