Sha256: 07bbd027e43052b9cf2b3c726b1ce469fbd24bb73edccbb9d05cf1afc3e80ccd
Contents?: true
Size: 936 Bytes
Versions: 15
Compression:
Stored size: 936 Bytes
Contents
class AddValuesToCtwsMinAppVersions < ActiveRecord::Migration[5.0] def up min_app_version_ios = Ctws::MinAppVersion.create!({ codename: "First Release", description: "You need to update your app. You will be redirected to the corresponding store", platform: "ios", min_version: "0.0.1", store_uri: "https://itunes.apple.com/" }) min_app_version_android = Ctws::MinAppVersion.create!({ codename: "First Release", description: "You need to update your app. You will be redirected to the corresponding store", platform: "android", min_version: "0.0.1", store_uri: "https://play.google.com" }) end def down min_app_version_ios = Ctws::MinAppVersion.find_by_min_version( "0.0.1" ) min_app_version_ios.destroy min_app_version_android = Ctws::MinAppVersion.find_by_min_version( "0.0.1" ) min_app_version_android.destroy end end
Version data entries
15 entries across 15 versions & 1 rubygems