Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1227 Bytes
1 | ######################################################################## |
2 | # File:: 20110223110532_add_audits_table.rb |
3 | # (C):: https://github.com/collectiveidea/acts_as_audited/tree/1.1-stable |
4 | # |
5 | # Purpose:: Auto-generated by the Acts As Audited gem. Stores audit |
6 | # information for models which declare themselves as audited. |
7 | # ---------------------------------------------------------------------- |
8 | # 23-Feb-2011 (ADH): Created. |
9 | ######################################################################## |
10 | |
11 | class AddAuditsTable < ActiveRecord::Migration |
12 | def self.up |
13 | create_table :audits, :force => true do |t| |
14 | t.column :auditable_id, :integer |
15 | t.column :auditable_type, :string |
16 | t.column :user_id, :integer |
17 | t.column :user_type, :string |
18 | t.column :username, :string |
19 | t.column :action, :string |
20 | t.column :changes, :text |
21 | t.column :version, :integer, :default => 0 |
22 | t.column :created_at, :datetime |
23 | end |
24 | |
25 | add_index :audits, [:auditable_id, :auditable_type], :name => 'auditable_index' |
26 | add_index :audits, [:user_id, :user_type], :name => 'user_index' |
27 | add_index :audits, :created_at |
28 | end |
29 | |
30 | def self.down |
31 | drop_table :audits |
32 | end |
33 | end |