Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted at 24. Aug '21

Rails 6 Generate Polymorphic Migration For Named Database

--db option

bin/rails g model PrivateImage private_imageable:references{polymorphic} body:blob metadata:jsonb --db oni_sorceress

Add Comment