Sha256: cb784144f34359147d88455d9c7d7befed2911e0cebfa128cc41874e7ef76ecd

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

class UpdateOrganizationMetadata < ActiveRecord::Migration
  def change
  	add_column :organizations, :push_disabled, :boolean
  	add_column :organizations, :pull_disabled, :boolean
  	# Migration to update the way we handle synchronized_entities for data sharing.
	  # Before : synchronized_entities = {company: true}
	  # After: synchronized_entities = {company: {can_push_to_connec: true, can_push_to_external: true}}

	  #We also add metadata from MnoHub
    Maestrano::Connector::Rails::Organization.all.each do |o|
      o.set_instance_metadata
      o.reset_synchronized_entities
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.0.2.pre.RC2 db/migrate/20170202033323_update_organization_metadata.rb
maestrano-connector-rails-2.0.2.pre.RC1 db/migrate/20170202033323_update_organization_metadata.rb