Class: AddJiveOauthTokens010Migration
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddJiveOauthTokens010Migration
- Defined in:
- lib/generators/jive/oauth_token/templates/migration_0.1.0.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
20 21 22 |
# File 'lib/generators/jive/oauth_token/templates/migration_0.1.0.rb', line 20 def self.down drop_table :jive_oauth_tokens end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/jive/oauth_token/templates/migration_0.1.0.rb', line 2 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. :expires_at t.string :refresh_token t.string :access_token t. null: false end end |