change

in db/migrate/20171227104233_create_product_kinds.rb [1:10]


  def change
    create_table :product_kinds do |t|
      t.string :name, null: false

      t.timestamps
    end

    add_index :product_kinds, :name, {unique: true}
  end