remove currency model and all references

This commit is contained in:
João Geonizeli
2021-08-28 01:29:07 -03:00
parent 31078f87ae
commit 0d10e86526
74 changed files with 665 additions and 1561 deletions

View File

@@ -10,7 +10,6 @@ class StakeOrderDashboard < Administrate::BaseDashboard
# on pages throughout the dashboard.
ATTRIBUTE_TYPES = {
user: Field::BelongsTo,
currency: Field::BelongsTo,
id: Field::Number,
pool_name: Field::String,
status: Field::Enumerize,
@@ -24,16 +23,16 @@ class StakeOrderDashboard < Administrate::BaseDashboard
#
# By default, it's limited to four items to reduce clutter on index pages.
# Feel free to add, remove, or rearrange items.
COLLECTION_ATTRIBUTES = [:user, :currency, :id, :pool_name].freeze
COLLECTION_ATTRIBUTES = [:user, :id, :pool_name].freeze
# SHOW_PAGE_ATTRIBUTES
# an array of attributes that will be displayed on the model's show page.
SHOW_PAGE_ATTRIBUTES = [:user, :currency, :id, :pool_name, :status, :amount, :created_at, :updated_at].freeze
SHOW_PAGE_ATTRIBUTES = [:user, :id, :pool_name, :status, :amount, :created_at, :updated_at].freeze
# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [:user, :currency, :pool_name, :status, :amount].freeze
FORM_ATTRIBUTES = [:user, :pool_name, :status, :amount].freeze
# COLLECTION_FILTERS
# a hash that defines filters that can be used while searching via the search