# Ruby Calculator - Interactive calculator built with Ruby on Rails
# Author: RSK World (Molla Samser, Founder | Rima Khatun, Designer & Tester)
# Contact: help@rskworld.in | +91 93305 39277
# Website: https://rskworld.in
# Year: 2026
# Description: Build a fully functional calculator using Ruby on Rails with modern UI

class CreateCalculationHistories < ActiveRecord::Migration[7.0]
  def change
    create_table :calculation_histories do |t|
      t.text :expression, null: false
      t.float :result, null: false
      t.string :operation, null: false
      t.timestamps
    end
    
    add_index :calculation_histories, :operation
    add_index :calculation_histories, :created_at
  end
end
