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