Class: CreateVoltronNotificationSmsNotifications

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/db/migrate/create_voltron_notification_sms_notifications.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/templates/db/migrate/create_voltron_notification_sms_notifications.rb', line 2

def change
  create_table :voltron_notification_sms_notifications do |t|
    t.string :to
    t.string :from
    t.text :message
    t.text :request_json
    t.text :response_json
    t.integer :notification_id
    t.string :status
    t.string :sid
    t.string :error_code

    t.timestamps null: false
  end

  add_index :voltron_notification_sms_notifications, :sid, unique: true
end