ectomobile/db/migrate/20210719142217_create_sensor.rb

10 lines
213 B
Ruby
Raw Normal View History

2021-12-06 23:00:04 +00:00
# frozen_string_literal: true
2021-07-19 14:56:49 +00:00
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