Remove Rails 5 deprecation warning.

This commit is contained in:
Guo Xiang Tan
2017-08-08 00:48:36 +09:00
parent 2e4b3e9b06
commit 1103ea7c4c
100 changed files with 108 additions and 108 deletions

View File

@@ -6,7 +6,7 @@ class CreatePostDetails < ActiveRecord::Migration
t.string :value, size: 512
t.text :extra
t.timestamps
t.timestamps null: false
end
add_index :post_details, [:post_id, :key], unique: true