Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 471
- Log:
Add 'quick and dirty' blacklist mechanism
- Author:
- rool
- Date:
- Sat Jan 26 09:02:22 +0000 2019
- Size:
- 539 Bytes
1 | # 2019-01-26 (ADH): |
2 | # |
3 | # Very simplistic quick-and-dirty implementation; Blacklist has just one |
4 | # row, which contains a text field of newline separated items processed |
5 | # by Ruby when checking a post. Not efficient but sufficient for now. |
6 | # |
7 | class AddBlacklist < ActiveRecord::Migration |
8 | def self.up |
9 | create_table :blacklists do |t| |
10 | t.column :list, :text, :default => '' |
11 | end |
12 | |
13 | if Blacklist.count == 0 |
14 | b = Blacklist.new |
15 | b.list = '' |
16 | b.save! |
17 | end |
18 | end |
19 | |
20 | def self.down |
21 | drop_table :blacklists |
22 | end |
23 | end |