Class: CreateVoltronNotifications

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/templates/db/migrate/create_voltron_notifications.rb', line 2

def change
  create_table :voltron_notifications do |t|
    t.string :notifyable_type
    t.integer :notifyable_id

    t.timestamps null: false
  end
end