Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 489
- Log:
Jan 2024 bounty system updates
- Author:
- rool
- Date:
- Sun Jan 28 09:30:54 +0000 2024
- Size:
- 798 Bytes
1 | ######################################################################## |
2 | # File:: 20240126085900_add_targets_to_poll.rb |
3 | # (C):: Hipposoft 2024 |
4 | # |
5 | # Purpose:: Adds a concept of an optional target amount to a Poll. |
6 | # ---------------------------------------------------------------------- |
7 | # 26-Jan-2024 (ADH): Created. |
8 | ######################################################################## |
9 | |
10 | class AddAuditsTable < ActiveRecord::Migration |
11 | def self.up |
12 | t.add_column :polls, :target_integer, :string |
13 | t.add_column :polls, :target_fraction, :string |
14 | t.add_column :polls, :target_for_sorting, :float |
15 | end |
16 | |
17 | def self.down |
18 | t.remove_column :polls, :target_integer |
19 | t.remove_column :polls, :target_fraction |
20 | t.remove_column :polls, :target_for_sorting |
21 | end |
22 | end |