diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 13:03:49 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 13:03:49 +0300 |
commit | 2541e50d7ce64bb402d06dc9d75567b78282c7b7 (patch) | |
tree | ab2fc7f250cc10631da0ffb9b5bd6f2d50ca4974 /db/migrate/20160610204157_add_deployments.rb | |
parent | 14a02a6a95353948d00f8f973b35b80ac06f4599 (diff) |
Improve validations
Diffstat (limited to 'db/migrate/20160610204157_add_deployments.rb')
-rw-r--r-- | db/migrate/20160610204157_add_deployments.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/db/migrate/20160610204157_add_deployments.rb b/db/migrate/20160610204157_add_deployments.rb index 557b78f91e1..cfa842daa6d 100644 --- a/db/migrate/20160610204157_add_deployments.rb +++ b/db/migrate/20160610204157_add_deployments.rb @@ -6,12 +6,12 @@ class AddDeployments < ActiveRecord::Migration def change create_table :deployments, force: true do |t| - t.integer :iid - t.integer :project_id - t.integer :environment_id - t.string :ref - t.boolean :tag - t.string :sha + t.integer :iid, null: false + t.integer :project_id, null: false + t.integer :environment_id, null: false + t.string :ref, null: false + t.boolean :tag, null: false + t.string :sha, null: false t.integer :user_id t.integer :deployable_id t.string :deployable_type |