Adding embedded PuSH server
This commit is contained in:
parent
26287b6e7d
commit
2d2c81765b
21 changed files with 262 additions and 8 deletions
15
db/migrate/20161128103007_create_subscriptions.rb
Normal file
15
db/migrate/20161128103007_create_subscriptions.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
class CreateSubscriptions < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :subscriptions do |t|
|
||||
t.string :callback_url, null: false, default: ''
|
||||
t.string :secret
|
||||
t.datetime :expires_at, null: true, default: nil
|
||||
t.boolean :confirmed, null: false, default: false
|
||||
t.integer :account_id, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :subscriptions, [:callback_url, :account_id], unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue