Sha256: b904ac5944180556f0d4728cba162b728f8332740690cd9b8760a3736c98abed

Contents?: true

Size: 1021 Bytes

Versions: 242

Compression:

Stored size: 1021 Bytes

Contents

class AddZuoraUserTableAndAlterAppInstanceIdTable < ActiveRecord::Migration[5.0]
  def change
    if !ActiveRecord::Base.connection.table_exists?('zuora_users')
      create_table :zuora_users do |t|
        t.string  :zuora_user_id
        t.jsonb   :zuora_identity_response, default: {}
        t.jsonb   :app_permissions, default: {}
        t.integer :scope, default: 0
        t.timestamps
      end
    end

    add_column :zuora_connect_app_instances, :zuora_domain, :text, default: "" unless column_exists? :zuora_connect_app_instances, :zuora_domain
    add_column :zuora_connect_app_instances, :zuora_entity_ids, :jsonb, default: [] unless column_exists? :zuora_connect_app_instances, :zuora_entity_ids
    add_column :zuora_connect_app_instances, :zuora_tenant_ids, :jsonb, default: [] unless column_exists? :zuora_connect_app_instances, :zuora_tenant_ids
    add_column :zuora_connect_app_instances, :zuora_logins, :text, default: "" unless column_exists? :zuora_connect_app_instances, :zuora_logins
  end
end

Version data entries

242 entries across 242 versions & 1 rubygems

Version Path
zuora_connect-3.2.11 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.10 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.9 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.8 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.7 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.6 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.5 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.4 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.3 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.2 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.2.0 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.g db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.f db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.e db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.d db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.c db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.b db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5.pre.a db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.5 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb
zuora_connect-3.1.4 db/migrate/20190520232221_add_zuora_user_table_and_alter_app_instance_id_table.rb