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.5 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb
jobshop-0.0.4.2p4 db/migrate/20160323132658_rename_configuration_token_to_registration_token.rb