frankfurter/db/migrate/001_create_currencies.rb

18 lines
262 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2012-11-20 17:36:12 +01:00
Sequel.migration do
2024-10-28 10:26:28 +01:00
up do
2012-11-20 17:36:12 +01:00
create_table :currencies do
Date :date
String :iso_code
Float :rate
2017-06-14 22:16:21 +02:00
index %i[date iso_code], unique: true
2012-11-20 17:36:12 +01:00
end
end
2024-10-28 10:26:28 +01:00
down do
drop_table :currencies
end
2012-11-20 17:36:12 +01:00
end