Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 1455 Bytes
1 | class Bare29User < ActiveRecord::Base |
2 | include BareMigration |
3 | end |
4 | |
5 | class AddUserNotification < ActiveRecord::Migration |
6 | def self.up |
7 | modify_tables_and_update([:add_column, Bare29User, :notify_via_email, :boolean], |
8 | [:add_column, Bare29User, :notify_on_new_articles, :boolean], |
9 | [:add_column, Bare29User, :notify_on_comments, :boolean], |
10 | [:add_column, Bare29User, :notify_watch_my_articles, :boolean]) do |u| |
11 | # Definitions: |
12 | # notify_via_email: use email to deliver notifications |
13 | # notify_on_new_articles: send a notification message (email, etc) when new articles added. |
14 | # notify_on_comments: send a notification message when new comments are added to watched articles. |
15 | # notify_watch_my_articles: tell the notifiation system to watch my articles. |
16 | u.notify_via_email = true |
17 | u.notify_on_new_articles = false |
18 | u.notify_on_comments = true |
19 | u.notify_watch_my_articles = true |
20 | end |
21 | end |
22 | |
23 | def self.down |
24 | modify_tables_and_update([:remove_column, Bare29User, :notify_via_email, :boolean], |
25 | [:remove_column, Bare29User, :notify_on_new_articles, :boolean], |
26 | [:remove_column, Bare29User, :notify_on_comments, :boolean], |
27 | [:remove_column, Bare29User, :notify_watch_my_articles, :boolean]) |
28 | end |
29 | end |