Sha256: 5c63f0965c9ee5d7f3bd247f10babd7375e93c975905b8e0b33c2b76e49a841a
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require_relative 'rails_api_auth_migration' class CreateLogins < RailsAPIAuthMigration def change create_table :logins, primary_key_options(:id) do |t| t.string :identification, null: false t.string :password_digest, null: true t.string :oauth2_token, null: false t.string :facebook_uid t.string :single_use_oauth2_token t.references :user, primary_key_options(:type) t.timestamps end end private def primary_key_options(option_name) RailsApiAuth.primary_key_type ? { option_name => RailsApiAuth.primary_key_type } : {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_api_auth-0.1.0 | db/migrate/20150709221755_create_logins.rb |
rails_api_auth-0.0.8 | db/migrate/20150709221755_create_logins.rb |