13 lines
286 B
Ruby
13 lines
286 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateArduinos < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :arduinos, id: :uuid do |t|
|
|
t.timestamps
|
|
t.uuid :raspberry_id, index: true
|
|
t.uuid :transaction_id, index: true
|
|
t.integer :local_id
|
|
end
|
|
end
|
|
end
|