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.4 test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.4 test/dummy/db/migrate/20170130110825_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.4 test/dummy/db/migrate/20170130110732_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.4 test/dummy/db/migrate/20170131181202_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.10.3 test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.3 test/dummy/db/migrate/20170130110825_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.3 test/dummy/db/migrate/20170130110732_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.3 test/dummy/db/migrate/20170130110750_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.10.2 test/dummy/db/migrate/20161221151011_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.2 test/dummy/db/migrate/20161221151133_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.2 test/dummy/db/migrate/20161221151035_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.2 test/dummy/db/migrate/20161221151053_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.10.1 test/dummy/db/migrate/20161211203625_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.1 test/dummy/db/migrate/20161211203741_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.1 test/dummy/db/migrate/20161211203648_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.1 test/dummy/db/migrate/20161211203706_create_push_type_node_hierarchies.push_type.rb
push_type_core-0.10.0 test/dummy/db/migrate/20161121193334_create_push_type_node_hierarchies.push_type.rb
push_type_auth-0.10.0 test/dummy/db/migrate/20161121193511_create_push_type_node_hierarchies.push_type.rb
push_type_api-0.10.0 test/dummy/db/migrate/20161121193359_create_push_type_node_hierarchies.push_type.rb
push_type_admin-0.10.0 test/dummy/db/migrate/20161121193418_create_push_type_node_hierarchies.push_type.rb