Sha256: d3dae9ec94f90fd9d4e9717d3ab957c4edc9fd44bd4c74d434b2f6b6b1bae0aa

Contents?: true

Size: 255 Bytes

Versions: 82

Compression:

Stored size: 255 Bytes

Contents

class AddSaltToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :salt, :string
    User.reset_column_information
    User.update_all :salt => "sweet harmonious biscuits"
  end

  def self.down
    remove_column :users, :salt
  end
end

Version data entries

82 entries across 82 versions & 6 rubygems

Version Path
trusty-cms-1.1.15 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.14 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.13 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.12 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.11 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.10 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.9 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.8 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.7 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.6 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.5 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.4 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.3 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.2 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.1 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.0 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.1.0.rc1 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.0.1 db/migrate/019_add_salt_to_users.rb
trusty-cms-1.0.0 db/migrate/019_add_salt_to_users.rb
radiant-1.1.4 db/migrate/019_add_salt_to_users.rb