summaryrefslogtreecommitdiff
path: root/db/migrate/20250823142743_create_beds.rb
blob: 3c23ad712845c865cd7ea25a67ecc9b4d4073447 (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateBeds < ActiveRecord::Migration[8.0]
  def change
    create_table :beds do |t|
      t.integer :location, null: false

      t.timestamps
    end

    add_index :beds, :location, unique: true
  end
end
Copyright 2019--2025 Marius PETER