Class: CreateNotifyUserUserHashes

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/notify_user/install/templates/create_notify_user_user_hashes.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/notify_user/install/templates/create_notify_user_user_hashes.rb', line 2

def change
  create_table :notify_user_user_hashes do |t|
    t.string :type
    t.integer :target_id
    t.string :target_type
    t.string :token
    t.boolean :active, default: true
    t.timestamps
  end
end