@@ -1,8 +1,8 @@ |
||
1 | 1 |
class CreateChains < ActiveRecord::Migration |
2 | 2 |
def change |
3 | 3 |
create_table :chains do |t| |
4 |
- t.integer :runner_id |
|
5 |
- t.integer :target_id |
|
4 |
+ t.integer :runner_id, null: false |
|
5 |
+ t.integer :target_id, null: false |
|
6 | 6 |
|
7 | 7 |
t.timestamps |
8 | 8 |
end |