frankfurter/db/migrate/001_create_currencies.rb
2024-10-28 10:26:28 +01:00

18 lines
262 B
Ruby

# frozen_string_literal: true
Sequel.migration do
up do
create_table :currencies do
Date :date
String :iso_code
Float :rate
index %i[date iso_code], unique: true
end
end
down do
drop_table :currencies
end
end