Class: CreateAgilibPushNotification
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAgilibPushNotification
- Defined in:
- lib/generators/active_record/templates/push_notification.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/active_record/templates/push_notification.rb', line 2 def change create_table :devices do |t| t.references :user t.string :platform t.string :register t. end add_index :devices, :user_id end |