Class: CreateTokenActionTokens
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTokenActionTokens
- Defined in:
- lib/generators/active_record/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end add_index :token_action_tokens, :token, :unique => true end |