Class: CreateGraphEdges
- Inherits:
-
Object
- Object
- CreateGraphEdges
- Defined in:
- lib/generators/advanced_relationship_management/install/templates/create_graph_edges_migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end end |