Add NOT NULL contraints.

This commit is contained in:
Akinori MUSHA 2014-09-03 13:19:14 +09:00
parent 706ce8d997
commit 9a7f7fe6b6

View file

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