Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 779 Bytes
1 | class UpdateWhiteList < ActiveRecord::Migration |
2 | def self.up |
3 | [Post, Forum, User].each do |klass| |
4 | klass.transaction do |
5 | klass.find(:all).each do |record| |
6 | begin |
7 | record.save_without_validation! |
8 | rescue |
9 | puts message_for_record(record, "[#{$!.class.name}] #{$!.message}") |
10 | end |
11 | end |
12 | end |
13 | end |
14 | end |
15 | |
16 | def self.down |
17 | end |
18 | |
19 | private |
20 | def self.message_for_record(record, message) |
21 | case record |
22 | when Post |
23 | "Post ##{record.id} of /forums/#{record.forum_id}/topics/#{record.topic_id}" |
24 | when User |
25 | "User #{record.display_name} /users/##{record.id}" |
26 | when Forum |
27 | "Forum /forums/##{record.id}" |
28 | end << " errored with: '#{message}'" |
29 | end |
30 | end |