about summary refs log tree commit diff
path: root/db/migrate/20180204034416_create_identities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20180204034416_create_identities.rb')
-rw-r--r--db/migrate/20180204034416_create_identities.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20180204034416_create_identities.rb b/db/migrate/20180204034416_create_identities.rb
new file mode 100644
index 000000000..f6f5da910
--- /dev/null
+++ b/db/migrate/20180204034416_create_identities.rb
@@ -0,0 +1,11 @@
+class CreateIdentities < ActiveRecord::Migration[5.0]
+  def change
+    create_table :identities do |t|
+      t.references :user, foreign_key: { on_delete: :cascade }
+      t.string :provider, null: false, default: ''
+      t.string :uid, null: false, default: ''
+
+      t.timestamps
+    end
+  end
+end