frankfurter/db/migrate/001_create_currencies.rb

14 lines
223 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
index [:date, :iso_code], unique: true
end
end
end