frankfurter/db/migrations/001_create_currencies.rb

12 lines
192 B
Ruby
Raw Normal View History

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