Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make bin/setup run without error #5510

Closed
wants to merge 1 commit into from
Closed

make bin/setup run without error #5510

wants to merge 1 commit into from

Conversation

compwron
Copy link
Collaborator

@compwron compwron commented Feb 6, 2024

Screenshot 2024-02-05 at 11 35 34 PM

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>'

@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Feb 6, 2024
@compwron
Copy link
Collaborator Author

compwron commented Mar 8, 2024

i want to get back to this in a bit

@compwron compwron closed this Mar 19, 2024
@compwron compwron deleted the fix-bin-setup branch March 19, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant