From 8c383bd2d3df59d1194bc98b6e5609bf206e7781 Mon Sep 17 00:00:00 2001 From: shaojunda Date: Mon, 27 Apr 2020 15:43:03 +0800 Subject: [PATCH] feat: add total supply to daily statistic --- .../20200427073824_add_total_supply_to_daily_statistic.rb | 5 +++++ db/schema.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20200427073824_add_total_supply_to_daily_statistic.rb diff --git a/db/migrate/20200427073824_add_total_supply_to_daily_statistic.rb b/db/migrate/20200427073824_add_total_supply_to_daily_statistic.rb new file mode 100644 index 000000000..3e8cffeec --- /dev/null +++ b/db/migrate/20200427073824_add_total_supply_to_daily_statistic.rb @@ -0,0 +1,5 @@ +class AddTotalSupplyToDailyStatistic < ActiveRecord::Migration[6.0] + def change + add_column :daily_statistics, :total_supply, :decimal, precision: 30 + end +end diff --git a/db/schema.rb b/db/schema.rb index 5a91a6fb8..7544e47c7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_04_27_041823) do +ActiveRecord::Schema.define(version: 2020_04_27_073824) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"