README.md in global-registry-bindings-0.0.2 vs README.md in global-registry-bindings-0.0.3

- old
+ new

@@ -12,10 +12,11 @@ Add a Global Registry initializer. `config/initializers/global_registry.rb` ```ruby require 'global_registry' +require 'global_registry_bindings' GlobalRegistry.configure do |config| config.access_token = ENV['GLOBAL_REGISTRY_TOKEN'] || 'fake' config.base_url = ENV['GLOBAL_REGISTRY_URL'] || 'https://backend.global-registry.org' end ``` @@ -28,19 +29,12 @@ To push models to Global Registry, you will need a `global_registry_id` column. You additionally need a `global_registry_mdm_id` to pull a Global Registry MDM (master data model) id. These columns should be of type `:string` or `:uuid` and allow null values. Column names are customizable through options. ```ruby class CreatePeople < ActiveRecord::Migration - def self.up - create_table :people do |t| - t.string :name - t.string :global_registry_id, :null => true, :index => true - t.string :global_registry_mdm_id, :null => true, :index => true - end - end - - def self.down - drop_table :people + def change + add_column :people, :global_registry_id, :string, null: true, default: nil + add_column :people, :global_registry_mdm_id, :string, null: true, default: nil end end ``` Enable `global-registry-bindings` functionality by declaring `global_registry_bindings` on your model.