Class: CreateNotificationsTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/acts_as_notificable/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/acts_as_notificable/templates/migration.rb', line 2

def change
  create_table :notifications do |t|
    t.text :locals
    t.string :template_name
    t.references :owner, index: true
    t.timestamps
  end
end