mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
18 lines
262 B
Ruby
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
|