Class: CreateApiConnections
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateApiConnections
- Defined in:
- lib/generators/petergate_api/templates/migrations/create_api_connections.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/petergate_api/templates/migrations/create_api_connections.rb', line 2 def change create_table :api_connections do |t| t.belongs_to :user, index: true, foreign_key: true t.string :token t.text :meta_data t.string :device_type t. null: false end end |