Sha256: 9075ad8eefd4faa9b8be445f912fa1a52fb92aa8cfbf0849b637500d80fd5374

Contents?: true

Size: 567 Bytes

Versions: 8

Compression:

Stored size: 567 Bytes

Contents

class CreateOproAuthGrants < ActiveRecord::Migration
  def change
    create_table  :opro_auth_grants do |t|
      t.string    :code
      t.string    :access_token
      t.string    :refresh_token
      t.text      :permissions
      t.datetime  :access_token_expires_at
      t.integer   :user_id
      t.integer   :application_id

      t.timestamps
    end

    add_index :opro_auth_grants, :code,          :unique => true
    add_index :opro_auth_grants, :access_token,  :unique => true
    add_index :opro_auth_grants, :refresh_token, :unique => true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
opro-0.5.0 lib/generators/active_record/templates/auth_grants.rb
opro-0.4.3 lib/generators/active_record/templates/auth_grants.rb
opro-0.4.2 lib/generators/active_record/templates/auth_grants.rb
opro-0.4.1 lib/generators/active_record/templates/auth_grants.rb
opro-0.4.0 lib/generators/active_record/templates/auth_grants.rb
opro-0.3.3 lib/generators/active_record/templates/auth_grants.rb
opro-0.3.2 lib/generators/active_record/templates/auth_grants.rb
opro-0.3.1 lib/generators/active_record/templates/auth_grants.rb