Gem installed but not used

My rails 4.2 project uses the scenic gem to manage views in postgres.

Although the CI log shows the gem is installed, the main feature it provides (“create_view” in migrations and schema.rb) produces an error as if the gem isn’t loaded.

NoMethodError: undefined methodcreate_view’ for #ActiveRecord::Schema:0x00000000d34320`

This all works fine in other environments, or when running rake db:test:prepare.