Class: CreateExceptionNotificationServerNotifications

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/exception_notification_server/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#downObject



23
24
25
# File 'lib/generators/exception_notification_server/templates/migration.rb', line 23

def down
  drop_table :exception_notification_server_notifications
end

#upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/exception_notification_server/templates/migration.rb', line 2

def up
  create_table :exception_notification_server_notifications do |t|
    t.integer :parent_id
    t.string :status
    t.string :exception_hash
    t.string :env
    t.string :application
    t.string :server
    t.string :process
    t.string :rails_root
    t.string :exception_class
    t.string :exception_message
    t.binary :backtrace
    t.binary :data
    t.binary :request
    t.binary :session
    t.binary :environment
    t.timestamps
  end
end