2012-10-05 20:40:30 +00:00
|
|
|
class CreateSynapses < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :synapses do |t|
|
|
|
|
t.text :desc
|
2013-01-01 22:45:35 +00:00
|
|
|
t.text :category
|
|
|
|
t.text :weight
|
|
|
|
t.text :permission
|
|
|
|
t.integer :node1_id
|
|
|
|
t.integer :node2_id
|
|
|
|
t.integer :user_id
|
2012-10-05 20:40:30 +00:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|