Class: CreateGraphEdges

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/advanced_relationship_management/install/templates/create_graph_edges_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/generators/advanced_relationship_management/install/templates/create_graph_edges_migration.rb', line 2

def change
  create_table :graph_edges do |t|
    t.references :source, polymorphic: true, null: false
    t.references :target, polymorphic: true, null: false
    t.timestamps
  end
end