i tried RAILS_ENV=production rails db:schema:load ...
# general
f
i tried RAILS_ENV=production rails dbschemaload but that didn't work
j
in what way didn't it work?
f
nothing was returned but a prompt
oh sorry it says i'm attempting to run a destructive action against my production database
doesn't it know it doesn't exist yet
maybe it was created non verbose and this is the response when i try to run it twice
Nevermind
I already had a database with the same name
ActiveRecord:MismatchedForeignKey Column
promotion_id
on table
spree_promotion_code_batches
does not match column
id
on
spree_promotions
, which has type
bigint
. To resolve this issue, change the type of the
promotion_id
column on
spree_promotion_code_batches
to be :bigint. (For example
t.bigint :promotion_id
).
Did I do something wrong
This error happens when i run dbschemaload
To fix this I would have to edit the gem
I guess I need to use master branch instead of 3.2.2?
nevermind i just edited the schema.rb file