Skip to content

Commit

Permalink
feat: add circulating supply to daily statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Apr 30, 2020
1 parent e172eda commit a63e01f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/daily_statistic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ class DailyStatistic < ApplicationRecord
# daily_dao_withdraw :decimal(30, )
# circulation_ratio :decimal(, )
# total_supply :decimal(30, )
# circulating_supply :decimal(, )
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddCirculatingSupplyToDailyStatistic < ActiveRecord::Migration[6.0]
def change
add_column :daily_statistics, :circulating_supply, :decimal
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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_073824) do
ActiveRecord::Schema.define(version: 2020_04_27_101449) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -194,6 +194,7 @@
t.decimal "daily_dao_withdraw", precision: 30
t.decimal "circulation_ratio"
t.decimal "total_supply", precision: 30
t.decimal "circulating_supply"
end

create_table "dao_contracts", force: :cascade do |t|
Expand Down

0 comments on commit a63e01f

Please sign in to comment.