Sha256: f5ba47c40f649b2735d89df2753d8ba07cac78c9ffcd0700551d424b3b2837a7

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

class CreateG5UpdatableClientsAndLocations < ActiveRecord::Migration[4.2]
  def change
    create_table :g5_updatable_clients do |t|
      t.string :uid
      t.string :urn
      t.json :properties

      t.timestamps
    end
    add_index :g5_updatable_clients, :uid
    add_index :g5_updatable_clients, :urn

    create_table :g5_updatable_locations do |t|
      t.string :uid
      t.string :urn
      t.string :client_uid
      t.json :properties

      t.timestamps
    end
    add_index :g5_updatable_locations, :uid
    add_index :g5_updatable_locations, :urn
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-1.0.2.pre.1 db/migrate/20140709222005_create_g5_updatable_clients_and_locations.rb