Open rad1k4l opened 2 years ago
version 3.0.stable After install all services for peatio i started peatio with docker . But get error : rake aborted! ActiveModel::UnknownAttributeError: unknown attribute 'base_factor' for Currency. /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:53:in_assign_attribute' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:44:in block in _assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:43:ineach' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:43:in _assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/attribute_assignment.rb:23:in_assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:35:in assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/core.rb:315:ininitialize' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/inheritance.rb:66:in new' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/inheritance.rb:66:innew' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/persistence.rb:52:in create!' /home/app/lib/tasks/seed.rake:22:inblock (4 levels) in ' /home/app/lib/tasks/seed.rake:20:in each' /home/app/lib/tasks/seed.rake:20:inblock (3 levels) in ' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in block in transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/transaction.rb:239:inblock in within_new_transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/transaction.rb:236:in within_new_transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/database_statements.rb:267:intransaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/transactions.rb:212:in transaction' /home/app/lib/tasks/seed.rake:19:inblock (2 levels) in ' /home/app/db/seeds.rb:7:in <main>' /opt/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:inload' /opt/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in load' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:inblock in load' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:257:in load_dependency' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:inload' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:554:in block in load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:672:inwith_inline_jobs' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:554:in load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/tasks/database_tasks.rb:281:inload_seed' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/railties/databases.rake:194:in block (2 levels) in <main>' /opt/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in<top (required)>' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in load' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:inkernel_load' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in run' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:476:inexec' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:ininvoke_command' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in dispatch' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:30:indispatch' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in start' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:24:instart' /usr/local/bundle/gems/bundler-2.1.4/exe/bundle:46:in block in <top (required)>' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:inwith_friendly_errors' /usr/local/bundle/gems/bundler-2.1.4/exe/bundle:34:in <top (required)>' /usr/local/bundle/bin/bundle:23:inload' /usr/local/bundle/bin/bundle:23:in <main>' Tasks: TOP => seed:currencies
rake aborted! ActiveModel::UnknownAttributeError: unknown attribute 'base_factor' for Currency. /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:53:in
block in _assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:43:in
_assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/attribute_assignment.rb:23:in
assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/core.rb:315:in
new' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/inheritance.rb:66:in
create!' /home/app/lib/tasks/seed.rake:22:in
each' /home/app/lib/tasks/seed.rake:20:in
block in transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/transaction.rb:239:in
within_new_transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in
transaction' /home/app/lib/tasks/seed.rake:19:in
<main>' /opt/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in
load' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:in
load_dependency' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:in
block in load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:672:in
load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/tasks/database_tasks.rb:281:in
block (2 levels) in <main>' /opt/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in
load' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in
run' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in
run' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
dispatch' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in
start' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in
block in <top (required)>' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in
<top (required)>' /usr/local/bundle/bin/bundle:23:in
<main>' Tasks: TOP => seed:currencies
version 3.0.stable After install all services for peatio i started peatio with docker . But get error :'
/home/app/lib/tasks/seed.rake:20:in '
/opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in '
/home/app/db/seeds.rb:7:in
rake aborted! ActiveModel::UnknownAttributeError: unknown attribute 'base_factor' for Currency. /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:53:in
_assign_attribute' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:44:inblock in _assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:43:in
each' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:43:in_assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/attribute_assignment.rb:23:in
_assign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activemodel-5.2.4.5/lib/active_model/attribute_assignment.rb:35:inassign_attributes' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/core.rb:315:in
initialize' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/inheritance.rb:66:innew' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/inheritance.rb:66:in
new' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/persistence.rb:52:increate!' /home/app/lib/tasks/seed.rake:22:in
block (4 levels) ineach' /home/app/lib/tasks/seed.rake:20:in
block (3 levels) inblock in transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/transaction.rb:239:in
block in within_new_transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/transaction.rb:236:inwithin_new_transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in
transaction' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/transactions.rb:212:intransaction' /home/app/lib/tasks/seed.rake:19:in
block (2 levels) in<main>' /opt/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in
load' /opt/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:inload' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:in
block in load' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:257:inload_dependency' /opt/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:285:in
load' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:554:inblock in load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:672:in
with_inline_jobs' /opt/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.5/lib/rails/engine.rb:554:inload_seed' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/tasks/database_tasks.rb:281:in
load_seed' /opt/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/railties/databases.rake:194:inblock (2 levels) in <main>' /opt/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in
<top (required)>' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:inload' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in
kernel_load' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:inrun' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in
exec' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
invoke_command' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:indispatch' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in
dispatch' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:instart' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in
start' /usr/local/bundle/gems/bundler-2.1.4/exe/bundle:46:inblock in <top (required)>' /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in
with_friendly_errors' /usr/local/bundle/gems/bundler-2.1.4/exe/bundle:34:in<top (required)>' /usr/local/bundle/bin/bundle:23:in
load' /usr/local/bundle/bin/bundle:23:in<main>' Tasks: TOP => seed:currencies