This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prerequisite: You have ssh access to an ubuntu server which will be set up for pairing | |
* Install zsh and oh-my-zsh | |
* Create a pairing user | |
* Change the default editor to vim, sudo update-alternatives --config editor, choose vim.basic | |
* Allow the pair user to sudo without password, visudo, "pair ALL=(ALL) NOPASSWD: ALL" | |
* Generate ssh keys for the pair user | |
* Add public keys to authorize team to ssh as the pairing user | |
* Install git | |
* Install wemux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see: https://github.com/rails/rails/issues/32467 | |
# written with help from: https://github.com/noise-machines | |
# sponsored by: https://www.hiresuccess.com/ | |
require "active_support/concern" | |
module ReplaceNilsWithColumnDefaults | |
extend ActiveSupport::Concern | |
included do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MigrateUsers < ActiveRecord::Migration | |
def self.up | |
rename_column :users, :crypted_password, :encrypted_password | |
add_column :users, :confirmation_token, :string, :limit => 255 | |
add_column :users, :confirmed_at, :timestamp | |
add_column :users, :confirmation_sent_at, :timestamp | |
execute "UPDATE users SET confirmed_at = created_at, confirmation_sent_at = created_at" | |
add_column :users, :reset_password_token, :string, :limit => 255 |