2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/generators/snitch_reporting/install/templates/install_snitch_reporting.rb', line 2
def change
create_table :snitch_reporting_snitch_reports do |t|
t.text :error
t.text :message
t.integer :log_level
t.string :klass
t.string :action
t.text :tags
t.datetime :first_occurrence_at
t.datetime :last_occurrence_at
t.bigint :occurrence_count
t.belongs_to :assigned_to
t.datetime :resolved_at
t.belongs_to :resolved_by
t.datetime :ignored_at
t.belongs_to :ignored_by
t.timestamps
end
create_table :snitch_reporting_snitch_occurrences do |t|
t.belongs_to :report
t.string :http_method
t.string :url
t.text :user_agent
t.text :backtrace
t.text :backtrace_data
t.text :context
t.text :params
t.text :headers
t.timestamps
end
create_table :snitch_reporting_snitch_comments do |t|
t.belongs_to :report
t.belongs_to :author
t.text :body
t.timestamps
end
create_table :snitch_reporting_snitch_histories do |t|
t.belongs_to :report
t.belongs_to :user
t.text :text
t.timestamps
end
create_table :snitch_reporting_snitch_trackers do |t|
t.belongs_to :report
t.date :date
t.bigint :count
t.timestamps
end
end
|