class CreateAtlassianJwtTokens < ActiveRecord::Migration
  def self.up
    if table_exists? :jwt_tokens
      pp 'Skipping jwt_tokens table creation...'
    else
      create_table :jwt_tokens do |t|
        t.string :addon_key
        t.string :client_key
        t.string :shared_secret
        t.string :product_type
        t.string :base_url
        t.string :api_base_url
        t.string :oauth_client_id
        t.string :public_key
      end

      add_index(:jwt_tokens, :client_key)
    end
  end
end
class CreateAtlassianJwtTokens < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def self.up
    if table_exists? :jwt_tokens
      pp 'Skipping jwt_tokens table creation...'
    else
      create_table :jwt_tokens do |t|
        t.string :addon_key
        t.string :client_key
        t.string :shared_secret
        t.string :product_type
        t.string :base_url
        t.string :api_base_url
        t.string :oauth_client_id
        t.string :public_key
      end

      add_index(:jwt_tokens, :client_key)
    end
  end
end

Fix the failing migration template
Fix the failing migration template

Inheriting directly from `ActiveRecord::Migration` is no longer
supported. So we need to inherit from a specific Rails version.
