Skip to content

Commit

Permalink
feat: add circulation ratio to daily statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Apr 30, 2020
1 parent 7643ce4 commit 64717a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/daily_statistic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ class DailyStatistic < ApplicationRecord
# daily_dao_deposit :decimal(30, )
# daily_dao_depositors_count :integer
# daily_dao_withdraw :decimal(30, )
# circulation_ratio :decimal(, )
# total_supply :decimal(30, )
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddCirculationRatioToDailyStatistic < ActiveRecord::Migration[6.0]
def change
add_column :daily_statistics, :circulation_ratio, :decimal
end
end
4 changes: 3 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_24_084519) do
ActiveRecord::Schema.define(version: 2020_04_27_041823) do

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

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

0 comments on commit 64717a5

Please sign in to comment.