frankfurter/db/migrate/001_create_currencies.rb

14 lines
222 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2012-11-20 17:36:12 +01:00
Sequel.migration do
change do
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
end