Sha256: 3e85b2803d7faab609702307946de41b9538b6b0923339e9438420a37084a760

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

class ChangeUsernameToIdentifier < ActiveRecord::Migration
  def self.up
    rename_column :service_tickets, :username, :identifier
    rename_column :ticket_granting_tickets, :username, :identifier
  end

  def self.down
    rename_column :service_tickets, :identifier, :username
    rename_column :ticket_granting_tickets, :identifier, :username
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
3mix-castronaut-0.5.0.2 lib/castronaut/db/002_change_username_to_identifier.rb
masover-castronaut-0.4.4.5 lib/castronaut/db/002_change_username_to_identifier.rb
masover-castronaut-0.5.0.1 lib/castronaut/db/002_change_username_to_identifier.rb