Class: CreateTokenActionTokens

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/active_record/templates/migration.rb', line 2

def change
  create_table(:token_action_tokens) do |t|
    t.string :token
    t.string :kind
    t.text :args
    t.string :success_url
    t.string :failure_url

    t.timestamps
  end

  add_index :token_action_tokens, :token, unique: true
end