diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-29 01:30:32 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-29 01:30:32 +0100 |
commit | 3f075c7794ca7cc6e3c566591e9929859c6c325c (patch) | |
tree | fd649accdafbb57cf1ac5d7231dd44bd5dd447c8 /db/migrate | |
parent | 1992575d577bf5b4c408a0104ad310e17846466a (diff) |
API for apps to register for push notifications
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170129000348_create_devices.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20170129000348_create_devices.rb b/db/migrate/20170129000348_create_devices.rb new file mode 100644 index 000000000..bf8f5fc6e --- /dev/null +++ b/db/migrate/20170129000348_create_devices.rb @@ -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 |