class CreateNotificationsTable

Public Instance Methods

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