Sha256: 5e1db2d0da15c596ef1de3b87136d74ae507a67020642f5237fdd1ec62982ad9

Contents?: true

Size: 522 Bytes

Versions: 8

Compression:

Stored size: 522 Bytes

Contents

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: "anc_desc_idx"

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
push_type_core-0.3.3 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.3.1 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.2.1 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.2.0 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.2.0.beta2 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.1.1 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.1.0 db/migrate/20141117210644_create_push_type_node_hierarchies.rb
push_type_core-0.1.0.beta3 db/migrate/20141117210644_create_push_type_node_hierarchies.rb