Class: CreateSmsLoggings

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/meta_sms/templates/migrations/create_sms_loggings.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/meta_sms/templates/migrations/create_sms_loggings.rb', line 2

def change
  create_table :sms_loggings do |t|
    t.string :message_text
    t.string :mobile_number
    t.string :error_message
    t.json :metadata

    t.timestamps
  end
end