Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 473
- Log:
Add simple topic title blacklist.
- Author:
- rool
- Date:
- Thu Jan 31 09:48:46 +0000 2019
- Size:
- 416 Bytes
1 | # 2019-01-31 (ADH): |
2 | # |
3 | # Addition to the blacklist system for topic titles, in a separate list. |
4 | # |
5 | class AddTitleBlacklist < ActiveRecord::Migration |
6 | def self.up |
7 | add_column :blacklists, :title_list, :text, :default => '' |
8 | |
9 | Blacklist.find_all.each do |b| # "update_all" just wouldn't work |
10 | b.title_list = '' |
11 | b.save! |
12 | end |
13 | end |
14 | |
15 | def self.down |
16 | remove_column :blacklists, :title_list |
17 | end |
18 | end |