10 lines
213 B
Ruby
10 lines
213 B
Ruby
# frozen_string_literal: true
|
|
class CreateSensor < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :sensors do |t|
|
|
t.string :nombre, unique: true, index: true
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|