Files
timeoverflow/db/migrate/20180524143938_create_push_notifications.rb
2018-05-28 18:25:14 +02:00

15 lines
387 B
Ruby

class CreatePushNotifications < ActiveRecord::Migration
def change
create_table :push_notifications do |t|
t.references :event, null: false
t.references :device_token, null: false
t.datetime :processed_at
t.timestamps null: false
end
add_foreign_key :push_notifications, :events
add_foreign_key :push_notifications, :device_tokens
end
end