frankfurter/db/migrate/001_create_currencies.rb
Hakan Ensari e5815737c1
Spring cleaning
- bumped gems
- rm bots
- rm pry byebug
- added rubocop-shopify and corrected generated warnings
2024-11-20 14:14:27 +01:00

18 lines
263 B
Ruby

# frozen_string_literal: true
Sequel.migration do
up do
create_table :currencies do
Date :date
String :iso_code
Float :rate
index [:date, :iso_code], unique: true
end
end
down do
drop_table :currencies
end
end