casa
casa copied to clipboard
make bin/setup run without error
Fix error:
== 20230729145310 AddReferenceLearningHourTypes: migrating ====================
-- add_reference(:learning_hours, :learning_hour_type, {:validate=>false, :index=>{:algorithm=>:concurrently}})
bin/rails aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)
Unknown key: :validate. Valid keys are: :limit, :precision, :scale, :default, :null, :collation, :comment, :primary_key, :if_exists, :if_not_exists, :array, :using, :cast_as, :as, :type, :enum_type, :stored
/Users/compiledwrong/repositories/casa/db/migrate/20230729145310_add_reference_learning_hour_types.rb:5:in `change'
Caused by:
ArgumentError: Unknown key: :validate. Valid keys are: :limit, :precision, :scale, :default, :null, :collation, :comment, :primary_key, :if_exists, :if_not_exists, :array, :using, :cast_as, :as, :type, :enum_type, :stored (ArgumentError)
raise ArgumentError.new("Unknown key: #{k.inspect}. Valid keys are: #{valid_keys.map(&:inspect).join(', ')}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/compiledwrong/repositories/casa/db/migrate/20230729145310_add_reference_learning_hour_types.rb:5:in `change'
Tasks: TOP => db:prepare
(See full trace by running task with --trace)
bin/setup:8:in `system': Command failed with exit 1: bin/rails (RuntimeError)
from bin/setup:8:in `system!'
from bin/setup:31:in `block in <main>'
from /Users/compiledwrong/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/fileutils.rb:244:in `chdir'
from /Users/compiledwrong/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/fileutils.rb:244:in `cd'
from bin/setup:11:in `<main>'
i want to get back to this in a bit