diff options
author | Hank Grabowski <hankgrabowski@gmail.com> | 2018-11-27 01:51:46 +0300 |
---|---|---|
committer | Frank Rousseau <frank.rousseau@free.fr> | 2018-12-31 00:33:04 +0300 |
commit | 09c13fdf6702565b13fd8bd34bca03dc119fc026 (patch) | |
tree | afcd006b01f8ab544cbc6dae1478ddb2ad97487a /db | |
parent | 803abba5c1ace3439c62b6e1f3f462b3d0390485 (diff) |
Notifications API Endpoint and unit test complete
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20181127012722_add_guid_to_notifications.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20181127012722_add_guid_to_notifications.rb b/db/migrate/20181127012722_add_guid_to_notifications.rb new file mode 100644 index 000000000..8581173f2 --- /dev/null +++ b/db/migrate/20181127012722_add_guid_to_notifications.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +class AddGuidToNotifications < ActiveRecord::Migration[5.1] + def change + add_column :notifications, :guid, :string + add_index :notifications, :guid, name: :index_notifications_on_guid, length: 191, unique: true + end +end |