Skip to content

Instantly share code, notes, and snippets.

View Shankar1598's full-sized avatar
๐Ÿš€
Never stop learning

Shankar Shankar1598

๐Ÿš€
Never stop learning
View GitHub Profile
@hkdsun
hkdsun / vitess_rails.rb
Created February 19, 2021 16:35
Vitess Rails patches
require 'active_record/connection_adapters/mysql2_adapter'
module VitessRails
module Patches
module PrependMasterKeyspace
def table_name
raise "A keyspace needs to be provided for internal rails metadata" unless @keyspace
"#{@keyspace}.#{super}"
end
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers