Sha256: 0f09de724970217bc88c37ddb259324edc505e5b766dc7d71e7231ad5db0551b

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

class AddJiveOauthTokens010Migration < ActiveRecord::Migration
	def self.up
		create_table :jive_oauth_tokens do |t|
			t.integer :jive_add_on_id

			t.integer :owner_id
			t.string :owner_type

			t.string :scope
			t.string :token_type
			t.integer :expires_in
			t.timestamp :expires_at
			t.string :refresh_token
			t.string :access_token

			t.timestamps null: false
		end
	end

	def self.down
		drop_table :jive_oauth_tokens
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jive-oauth_token-0.0.4 lib/generators/jive/oauth_token/templates/migration_0.1.0.rb