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