4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/generators/ruby_cms/templates/db/migrate/20260129000001_create_ruby_cms_visitor_errors.rb', line 4
def change
create_table :ruby_cms_visitor_errors, if_not_exists: true do |t|
t.string :error_class, null: false
t.text :error_message, null: false
t.string :request_path, null: false
t.string :request_method
t.string :ip_address
t.text :user_agent
t.text :backtrace
t.text :request_params
t.string :session_id
t.boolean :resolved, default: false, null: false
t.timestamps
end
add_index :ruby_cms_visitor_errors, :created_at, if_not_exists: true
add_index :ruby_cms_visitor_errors, :request_path, if_not_exists: true
add_index :ruby_cms_visitor_errors, :resolved, if_not_exists: true
end
|