From 9d6d876c62408c69c654aab1a664f1294ec668b7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 15 Oct 2017 13:49:03 -0400 Subject: Added pokeviewer --- db/migrate/20171015171142_add_pokeviewer_token_to_user.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20171015171142_add_pokeviewer_token_to_user.rb (limited to 'db/migrate/20171015171142_add_pokeviewer_token_to_user.rb') diff --git a/db/migrate/20171015171142_add_pokeviewer_token_to_user.rb b/db/migrate/20171015171142_add_pokeviewer_token_to_user.rb new file mode 100644 index 0000000..2dc5143 --- /dev/null +++ b/db/migrate/20171015171142_add_pokeviewer_token_to_user.rb @@ -0,0 +1,9 @@ +class AddPokeviewerTokenToUser < ActiveRecord::Migration[5.1] + def change + change_table :users do |t| + t.string :pokeviewer_token, limit: 191 + end + + add_index :users, :pokeviewer_token, unique: true + end +end -- cgit 1.4.1