mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
e5815737c1
- bumped gems - rm bots - rm pry byebug - added rubocop-shopify and corrected generated warnings
23 lines
386 B
Ruby
23 lines
386 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
up do
|
|
create_table :days do
|
|
date :date
|
|
jsonb :rates
|
|
index :date, unique: true
|
|
end
|
|
drop_table :currencies
|
|
end
|
|
|
|
down do
|
|
create_table :currencies do
|
|
date :date
|
|
string :iso_code
|
|
float :rate
|
|
index [:date, :iso_code], unique: true
|
|
end
|
|
drop_table :days
|
|
end
|
|
end
|