class CreateAgilibPushNotification

Public Instance Methods

change() click to toggle source
# 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.timestamps
  end
  add_index :devices, :user_id
end