Sha256: bb630e176e248e720a7336bc60a9f49429df64dd14a90d76642ce33a67b51061
Contents?: true
Size: 1015 Bytes
Versions: 1
Compression:
Stored size: 1015 Bytes
Contents
class CreateDoorkeeperTables < ActiveRecord::Migration def change create_table :oauth_applications do |t| t.string :name, :null => false t.string :uid, :null => false t.string :secret, :null => false t.string :redirect_uri, :null => false t.timestamps end create_table :oauth_access_grants do |t| t.integer :resource_owner_id, :null => false t.integer :application_id, :null => false t.string :token, :null => false t.integer :expires_in, :null => false t.string :redirect_uri, :null => false t.datetime :created_at, :null => false end create_table :oauth_access_tokens do |t| t.integer :resource_owner_id, :null => false t.integer :application_id, :null => false t.string :token, :null => false t.datetime :expires_at t.datetime :revoked_at t.datetime :created_at, :null => false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.1.0 | lib/generators/doorkeeper/templates/migration.rb |