简体   繁体   English

Rails Active Storage - 将文件从一个应用程序复制到另一个应用程序

[英]Rails Active Storage - Copy Files from one app to another

Just a simple question (which probable isn't easy to answer) but can one copy all the Active Storage files from one app to another after cloning the postgresql database from the one app to the other?只是一个简单的问题(这可能不容易回答)但是在将 postgresql 数据库从一个应用程序克隆到另一个应用程序之后,是否可以将所有 Active Storage 文件从一个应用程序复制到另一个应用程序?

Copy the database (including the tables created by Active Storage) to your other application and also copy the files from the storage folder to the other app's storage folder.将数据库(包括 Active Storage 创建的表)复制到您的其他应用程序,并将文件从storage文件夹复制到其他应用程序的存储文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM