Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 502 Bytes
1 | class PromoteCanonicalServerUrl < ActiveRecord::Migration |
2 | class Blog < ActiveRecord::Base |
3 | include BareMigration |
4 | serialize :settings, Hash |
5 | end |
6 | |
7 | def self.up |
8 | add_column :blogs, :base_url, :string |
9 | Blog.find(:all).each do |blog| |
10 | begin |
11 | blog.base_url = blog.settings['canonical_server_url'] |
12 | blog.save |
13 | rescue |
14 | # if base_url doesn't exist, then we don't really care. |
15 | end |
16 | end |
17 | end |
18 | |
19 | def self.down |
20 | remove_column :blogs, :base_url |
21 | end |
22 | end |