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

Version Path
ctws-0.3.0.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.2.3.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.2.2.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.2.1.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.2.0.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.14.beta db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.13.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.12.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.11.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.10.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.9.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.8.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.7.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.6.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb
ctws-0.1.5.alpha db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb