Sha256: 38063f9682f9b732fd60ca54671cd2688e4a03167d451f5bbf5f8d360d853810

Contents?: true

Size: 598 Bytes

Versions: 142

Compression:

Stored size: 598 Bytes

Contents

# This migration comes from push_type (originally 20141117210644)
class CreatePushTypeNodeHierarchies < ActiveRecord::Migration
  def change
    create_table :push_type_node_hierarchies, id: false do |t|
      t.uuid      :ancestor_id,     null: false
      t.uuid      :descendant_id,   null: false
      t.integer   :generations,     null: false
    end

    add_index :push_type_node_hierarchies, [:ancestor_id, :descendant_id, :generations],
      unique: true,
      name: "node_anc_desc_idx"

    add_index :push_type_node_hierarchies, [:descendant_id],
      name: "node_desc_idx"
  end
end

Version data entries

142 entries across 142 versions & 5 rubygems

Version Path
push_type_core-0.10.0.beta.5 test/dummy/db/migrate/20161117154444_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.0.beta.5 test/dummy/db/migrate/20161117154615_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.0.beta.5 test/dummy/db/migrate/20161117154507_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.0.beta.5 test/dummy/db/migrate/20161117154524_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.10.0.beta.3 test/dummy/db/migrate/20161116222803_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.0.beta.3 test/dummy/db/migrate/20161116222936_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.0.beta.3 test/dummy/db/migrate/20161116222827_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.0.beta.3 test/dummy/db/migrate/20161116222845_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.9.5 test/dummy/db/migrate/20161024153922_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.9.5 test/dummy/db/migrate/20161024154036_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.9.5 test/dummy/db/migrate/20161102202055_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.9.3 test/dummy/db/migrate/20161016144045_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.9.3 test/dummy/db/migrate/20161016144206_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.9.3 test/dummy/db/migrate/20161016144110_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.9.2 test/dummy/db/migrate/20160808143017_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.9.2 test/dummy/db/migrate/20160808143130_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.9.2 test/dummy/db/migrate/20160808143040_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.9.1 test/dummy/db/migrate/20160802195918_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.9.1 test/dummy/db/migrate/20160802200031_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.9.1 test/dummy/db/migrate/20160802195941_create_push_type_node_hierarchies.push_type.rb