add stake orders list

This commit is contained in:
João Geonizeli
2021-08-16 00:58:43 -03:00
parent b065f5dca7
commit 0965333679
27 changed files with 917 additions and 125 deletions

View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
class CreateStakeOrders < ActiveRecord::Migration[6.1]
def change
create_table(:stake_orders) do |t|
t.references(:user, null: false, foreign_key: true)
t.string(:pool_name, null: false)
t.string(:status, null: false)
t.decimal(:amount, precision: 20, scale: 10, null: false, default: 0)
t.timestamps
end
end
end