mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
10 lines
328 B
Ruby
10 lines
328 B
Ruby
class CreateConnections < ActiveRecord::Migration
|
|
def change
|
|
create_table :connections do |t|
|
|
t.integer :input_id, null: false
|
|
t.integer :output_id, null: false
|
|
end
|
|
add_foreign_key :connections, :my_modules, column: :input_id
|
|
add_foreign_key :connections, :my_modules, column: :output_id
|
|
end
|
|
end
|