Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created March 18, 2020 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/c7f5bf6cea3be8615c3056fb06aa2a4d to your computer and use it in GitHub Desktop.
Save IanVaughan/c7f5bf6cea3be8615c3056fb06aa2a4d to your computer and use it in GitHub Desktop.
rake db load fails using flipper
-----> Fetching heroku/ci-postgresql buildpack...
buildpack downloaded
-----> Fetching heroku/ci-redis buildpack...
buildpack downloaded
-----> Fetching heroku/ruby buildpack...
buildpack downloaded
-----> Fetching heroku/nodejs buildpack...
buildpack downloaded
-----> Postgresql app detected
Using postgresql version: 12.2
Using stack version: heroku-18
-----> Fetching and vendoring postgresql into slug
-----> Initializing database
The files belonging to this database system will be owned by user "u20112".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /app/.indyno/vendor/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
pg_ctl -D /app/.indyno/vendor/postgresql/data -l logfile start
waiting for server to start.... done
server started
CREATE ROLE
-----> Copying .profile.d/00-pg-path.sh to add postgresql binaries to PATH
-----> Postgresql done
-----> Redis app detected
Using redis version: 5.0.6
-----> Fetching redis from cache into slug
-----> Redis done
-----> Ruby app detected
-----> Installing bundler 2.0.2
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Setting up Test for Ruby/Rails
-----> Using Ruby version: ruby-2.7.0
-----> Installing dependencies using bundler 2.0.2
Running: bundle install --without _ --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without '_'`, and stop using this flag
[DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs`
Fetching gem metadata from https://rubygems.org/......
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using minitest 5.14.0
Using thread_safe 0.3.6
Using zeitwerk 2.3.0
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using crass 1.0.6
Using rack 2.2.2
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using mimemagic 0.3.3
Using mini_mime 1.0.2
Using bundler 2.1.2
Using method_source 0.9.2
Using thor 0.20.3
Using public_suffix 4.0.3
Using ast 2.4.0
Using aws-eventstream 1.0.3
Using aws-partitions 1.262.0
Using jmespath 1.4.0
Using bcrypt 3.1.13
Using bindex 0.8.1
Using msgpack 1.3.1
Using brakeman 4.8.0
Using byebug 11.1.1
Using regexp_parser 1.7.0
Using childprocess 3.0.0
Using coderay 1.1.2
Using dry-equalizer 0.3.0
Using dry-inflector 0.2.0
Using ice_nine 0.11.2
Using connection_pool 2.2.2
Using safe_yaml 1.0.5
Using orm_adapter 0.5.0
Using devise-bootstrap-views 1.1.0
Using diff-lcs 1.3
Using docile 1.3.2
Using dogstatsd-ruby 4.7.0
Using e2mmap 0.1.0
Using ffi 1.12.2
Using multipart-post 2.1.1
Fetching flipper 0.17.2
Using formatador 0.2.5
Using raabro 1.1.6
Using graphql 1.9.17
Using rb-fsevent 0.10.3
Using lumberjack 1.1.1
Using nenv 0.3.0
Using shellany 0.0.1
Using guard-compat 1.2.1
Using rspec-support 3.9.2
Using jaro_winkler 1.5.4
Using parallel 1.19.1
Using rainbow 3.0.0
Using ruby-progressbar 1.10.1
Using unicode-display_width 1.6.0
Using hashdiff 1.0.1
Using hashie 4.1.0
Using json 2.3.0
Using jwt 2.2.1
Using multi_json 1.14.1
Using multi_xml 0.6.0
Using nested_scaffold 1.1.0
Using pg 1.1.4
Using redis 4.1.3
Using redis-prescription 1.0.0
Using rollbar 2.24.0
Using ruby_http_client 3.3.0
Using rubyzip 2.0.0
Using tilt 2.0.10
Using simplecov-html 0.12.2
Using slack-notifier 2.3.2
Using spring 2.1.0
Using stripe 5.13.0
Using thwait 0.1.0
Using timecop 0.9.1
Using turbolinks-source 5.2.0
Using vcr 5.1.0
Using aasm 5.0.6
Using i18n 1.8.2
Using tzinfo 1.2.6
Using nokogiri 1.10.9
Using rack-test 1.1.0
Using websocket-driver 0.7.1
Using marcel 0.3.3
Using mail 2.7.1
Using sprockets 3.7.2
Using dry-core 0.4.9
Using warden 1.2.8
Using rack-protection 2.0.8.1
Using rack-proxy 0.6.5
Using addressable 2.7.0
Using bundler-audit 0.6.1
Using parser 2.7.0.2
Using aws-sigv4 1.1.0
Using bootsnap 1.4.5
Using crack 0.4.3
Using pry 0.12.2
Using puma 4.3.3
Installing flipper 0.17.2
Using ethon 0.12.0
Using faraday 0.17.3
Using rb-inotify 0.10.1
Using notiffany 0.1.3
Using rspec-core 3.9.1
Using rspec-expectations 3.9.0
Using rspec-mocks 3.9.1
Using selenium-webdriver 3.142.7
Using sendgrid-ruby 6.0.2
Using simplecov 0.18.5
Using omniauth 1.9.1
Using turbolinks 5.2.1
Using activesupport 6.0.2.1
Using loofah 2.4.0
Using xpath 3.2.0
Using dry-configurable 0.9.0
Using dry-logic 1.0.5
Using et-orbi 1.2.2
Using aws-sdk-core 3.87.0
Using rubocop 0.76.0
Using launchy 2.4.3
Using pry-byebug 3.8.0
Using pry-rails 0.3.9
Using webmock 3.8.2
Using pundit 2.1.0
Using sass-listen 4.0.0
Using shoulda-matchers 4.3.0
Using sidekiq 6.0.5
Using typhoeus 1.3.1
Using webdrivers 4.2.0
Using rails-dom-testing 2.0.3
Using rails-html-sanitizer 1.3.0
Using globalid 0.4.2
Using activemodel 6.0.2.1
Using aws-sdk-kms 1.27.0
Using capybara 3.31.0
Using dry-container 0.7.2
Using factory_bot 5.1.1
Using fugit 1.3.3
Using gocardless_pro 2.15.1
Using graphql-client 0.16.0
Using listen 3.2.1
Using rspec 3.9.0
Using jbuilder 2.9.1
Using oauth2 1.4.2
Using sass 3.7.4
Using sidekiq-throttled 0.11.0
Using actionview 6.0.2.1
Using activejob 6.0.2.1
Using activerecord 6.0.2.1
Using activemodel-serializers-xml 1.0.2
Using guard 2.16.1
Using rubocop-performance 1.5.2
Using rubocop-rails 2.3.2
Using rubocop-rspec 1.30.1
Using rufus-scheduler 3.6.0
Using spring-watcher-listen 2.0.1
Using aws-sdk-s3 1.60.1
Using dry-types 1.2.2
Using activeresource 5.1.0
Using omniauth-oauth2 1.5.0
Using actionpack 6.0.2.1
Using dry-struct 1.2.0
Using guard-rspec 4.7.3
Using guard-rubocop 1.3.0
Using omniauth-gocardless-oauth2 1.0.1
Using omniauth-paypal-oauth2 2.0.2
Using omniauth-shopify-oauth2 2.2.0
Using omniauth-stripe-connect 2.10.1
Using rubocop-airbnb 3.0.2
Using shopify_api 8.1.0
Using sidekiq-scheduler 3.0.0
Using actioncable 6.0.2.1
Using activestorage 6.0.2.1
Using actionmailer 6.0.2.1
Using railties 6.0.2.1
Using sprockets-rails 3.2.1
Using companies-house-rest 0.5.0
Using rails-controller-testing 1.0.4
Using actionmailbox 6.0.2.1
Using actiontext 6.0.2.1
Using responders 3.0.0
Using factory_bot_rails 5.1.1
Using rspec-rails 4.0.0.beta4
Using sass-rails 5.1.0
Using web-console 4.0.1
Using webpacker 4.2.2
Using rails 6.0.2.1
Using devise 4.7.1
Using active_storage_validations 0.8.5
Using data_migrate 6.2.0
Fetching flipper-active_record 0.17.2
Fetching flipper-ui 0.17.2
Installing flipper-active_record 0.17.2
Installing flipper-ui 0.17.2
Bundle complete! 62 Gemfile dependencies, 194 gems now installed.
Gems in the group _ were not installed.
Bundled gems are installed into `./vendor/bundle`
Removing bundler (2.0.2)
Bundle completed (9.55s)
Cleaning up the bundler cache.
-----> Installing node-v10.15.3-linux-x64
-----> Installing yarn-v1.16.0
-----> Clearing db:test:purge db:create db:structure:dump rake tasks
-----> Detecting rake tasks
-----> Preparing test database
Running: rake db:schema:load_if_ruby
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/schema/mutation.rb:71: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/schema/member/has_fields.rb:11: warning: The called method `field' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:394: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/type.rb:27: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/type/adapter_specific_registry.rb:9: warning: The called method `add_modifier' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/integer.rb:13: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/value.rb:8: warning: The called method `initialize' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb:12: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/value.rb:8: warning: The called method `initialize' is defined here
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/transactions.rb:212: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:274: warning: The called method `transaction' is defined here
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "flipper_features" does not exist
LINE 8: WHERE a.attrelid = '"flipper_features"'::regclass
^
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `async_exec'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `block (2 levels) in query'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:64:in `block in query'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:718:in `block (2 levels) in log'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `block in log'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:708:in `log'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `query'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:817:in `column_definitions'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:114:in `columns'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:76:in `columns'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:82:in `columns_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:490:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attributes.rb:247:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:480:in `block in load_schema'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:477:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:477:in `load_schema'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:362:in `attribute_types'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:386:in `type_for_attribute'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/table_metadata.rb:33:in `type'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:51:in `build'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:109:in `block in expand_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `flat_map'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `expand_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:21:in `build_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/where_clause_factory.rb:19:in `build'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:656:in `where!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:649:in `where'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/querying.rb:21:in `where'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-active_record-0.17.2/lib/flipper/adapters/active_record.rb:59:in `block in add'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `block in transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/transactions.rb:212:in `transaction'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-active_record-0.17.2/lib/flipper/adapters/active_record.rb:58:in `add'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/adapters/memoizable.rb:48:in `add'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:44:in `block in enable'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:375:in `block in instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/instrumenters/noop.rb:5:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:372:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:43:in `enable'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/dsl.rb:44:in `enable'
/app/config/initializers/flipper.rb:22:in `<main>'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:319:in `block in load'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:319:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:667:in `block in load_config_initializer'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/notifications.rb:182:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:666:in `load_config_initializer'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:624:in `block (2 levels) in <class:Engine>'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:623:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:623:in `block in <class:Engine>'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `run'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:50:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:363:in `initialize!'
/app/config/environment.rb:5:in `<main>'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:339:in `require_environment!'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/app/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Caused by:
PG::UndefinedTable: ERROR: relation "flipper_features" does not exist
LINE 8: WHERE a.attrelid = '"flipper_features"'::regclass
^
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `async_exec'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `block (2 levels) in query'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:64:in `block in query'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:718:in `block (2 levels) in log'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `block in log'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:708:in `log'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `query'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:817:in `column_definitions'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:114:in `columns'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:76:in `columns'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:82:in `columns_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:490:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attributes.rb:247:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:480:in `block in load_schema'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:477:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:477:in `load_schema'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:362:in `attribute_types'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:386:in `type_for_attribute'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/table_metadata.rb:33:in `type'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:51:in `build'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:109:in `block in expand_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `flat_map'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:68:in `expand_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder.rb:21:in `build_from_hash'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/where_clause_factory.rb:19:in `build'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:656:in `where!'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:649:in `where'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/querying.rb:21:in `where'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-active_record-0.17.2/lib/flipper/adapters/active_record.rb:59:in `block in add'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `block in transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `transaction'
/app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/transactions.rb:212:in `transaction'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-active_record-0.17.2/lib/flipper/adapters/active_record.rb:58:in `add'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/adapters/memoizable.rb:48:in `add'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:44:in `block in enable'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:375:in `block in instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/instrumenters/noop.rb:5:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:372:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/feature.rb:43:in `enable'
/app/vendor/bundle/ruby/2.7.0/gems/flipper-0.17.2/lib/flipper/dsl.rb:44:in `enable'
/app/config/initializers/flipper.rb:22:in `<main>'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:319:in `block in load'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:319:in `load'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:667:in `block in load_config_initializer'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/notifications.rb:182:in `instrument'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:666:in `load_config_initializer'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:624:in `block (2 levels) in <class:Engine>'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:623:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/engine.rb:623:in `block in <class:Engine>'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `run'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:50:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:363:in `initialize!'
/app/config/environment.rb:5:in `<main>'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:339:in `require_environment!'
/app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/app/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:schema:load_if_ruby => environment
(See full trace by running task with --trace)
!
! Could not prepare database for test
!
@strikefromspace
Copy link

I've run into this (again), even though I made no changes to my app. Do you recall what your workaround was?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment