Sha256: 51e17391fe5a0efe693fc41c98f16688a7fcdab8616eb65cda971af873a6d365

Contents?: true

Size: 348 Bytes

Versions: 22

Compression:

Stored size: 348 Bytes

Contents

class RenameConfigurationTokenToRegistrationToken < ActiveRecord::Migration[5.0]
  def change
    rename_column :jobshop_sites, :configuration_token, :registration_token
    rename_column :jobshop_sites, :configuration_token_sent_at,
      :registration_token_sent_at

    add_index :jobshop_sites, [ "registration_token" ], unique: true
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
jobshop-0.0.107 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.101 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.67 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.61 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.59 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.53 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.41 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.37 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.29 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.23 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.16 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.15 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.14 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.13 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.12 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.11 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.10 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.9 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.7 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.6 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb