Add NOT NULL contraints.

Akinori MUSHA %!s(int64=10) %!d(string=hace) años
padre
commit
9a7f7fe6b6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      db/migrate/20140821115428_create_chains.rb

+ 2 - 2
db/migrate/20140821115428_create_chains.rb

@@ -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