Skip to content

Instantly share code, notes, and snippets.

View nowlinuxing's full-sized avatar

Loose nowlinuxing

View GitHub Profile
@nowlinuxing
nowlinuxing / company.rb
Created January 18, 2016 13:23
Use octopus with a master DB with some slaves, and sharded some user DBs
# class CreateCompanies < ActiveRecord::Migration
# def change
# create_table :companies do |t|
# t.string :name
#
# t.timestamps null: false
# end
# end
# end
@nowlinuxing
nowlinuxing / .rubocop.yml
Last active December 9, 2018 16:05
Rubocop to sample snippets in ruby-2.5.3
inherit_from: .rubocop_todo.yml
Layout/SpaceBeforeBlockBraces:
Enabled: false
Style/NumericLiterals:
Enabled: false