class CreateVoltronNotificationSmsNotifications

Public Instance Methods

change() click to toggle source
# 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