0
0
Fork 0

API for apps to register for push notifications

This commit is contained in:
Eugen Rochko 2017-01-29 01:30:32 +01:00
parent 1992575d57
commit 3f075c7794
13 changed files with 112 additions and 2 deletions

View file

@ -0,0 +1,13 @@
class CreateDevices < ActiveRecord::Migration[5.0]
def change
create_table :devices do |t|
t.integer :account_id, null: false
t.string :registration_id, null: false, default: ''
t.timestamps
end
add_index :devices, :registration_id
add_index :devices, :account_id
end
end