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 |
---|---|
radiant-0.8.0 | db/migrate/019_add_salt_to_users.rb |
radiant-0.7.1 | db/migrate/019_add_salt_to_users.rb |