Class: Telewatts::SenderSupport::SenderReportsMigration

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/telewatts/sender_support/sender_reports_migration.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/telewatts/sender_support/sender_reports_migration.rb', line 16

def self.down
  drop_table :sender_reports
end

.upObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/telewatts/sender_support/sender_reports_migration.rb', line 4

def self.up
  create_table :sender_reports do |t|
    t.string :level
    t.string :code # predefined report codes such as 'sender_active'
    t.string :message
    t.text :data
    t.text :exception_dump

    t.timestamps
  end
end