Migrate, e.g. organisation.logo (Carrierwave "LogoUploader") to organisation.logo2 (ActiveStorage)
require 'migrate_attachment'
migrate_attachment!(
klass: Organisation,
attachment_attribute: :logo,
carrierwave_uploader: LogoUploader, | import UIKit | |
| @main | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { | |
| let appearance = UINavigationBarAppearance() | |
| appearance.configureWithOpaqueBackground() | |
| appearance.backgroundColor = .systemGreen | |
| /// https://developer.apple.com/documentation/uikit/uinavigationbarappearance | |
| UINavigationBar.appearance().scrollEdgeAppearance = appearance |