Sha256: 5146f4eddd818fca9cf6af191f0bf1427ea616920d519080d038c5387515bdcf
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| t.string :email, null: false, default: '' t.string :provider, null: false, default: 'g5' t.string :uid, null: false t.string :g5_access_token t.timestamps end add_index :users, :email, unique: true add_index :users, %i[provider uid], unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
g5_authenticatable_api-1.0.0 | spec/dummy/db/migrate/20140217124048_devise_create_users.rb |
g5_authenticatable_api-1.0.0.pre.1 | spec/dummy/db/migrate/20140217124048_devise_create_users.rb |