class CreateProducts < ActiveRecord::Migration[6.0]
  def change
    create_table :products do |t|
      t.string :name, index: {unique: true}
      t.integer :ord, default: 0
      t.integer :articles_count, default: 0
      t.timestamps
    end
  end
end
