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