Hello folks,
I’ve some issues with
rake db:structure:dump and rails 4.2.0
If config.active_record.schema_format = :ruby, rake db:structure:dump
will
generate structure.sql nevertheless - tests will fail because of a
missing
schema.rb file
(/home/jan/RubymineProjects/cdb3/db/schema.rb doesn’t exist yet. Run
rake db:migrate
to create it, then try again. If you do not intend to use a
database, you should instead alter
/home/jan/RubymineProjects/cdb3/config/application.rb to limit the
frameworks that will be loaded.
Started)
What’s wrong here?
Thanks in advance,
Jan
On Friday, January 23, 2015 at 4:33:21 PM UTC, Jan Lühr wrote:
db:migrate` to create it, then try again. If you do not intend to use a
database, you should instead alter
/home/jan/RubymineProjects/cdb3/config/application.rb to limit the
frameworks that will be loaded.
Started)
What’s wrong here?
db:structure:dump always generates structure.sql - the schema_format
settings controls whether it is invoked at all (or whether
db:schema:dump
is called).
(See
rails/activerecord/lib/active_record/railties/databases.rake at 4-2-stable · rails/rails · GitHub).
Was schema_format previously set to :sql ?
Fred