This file contains hidden or 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
namespace :db do | |
task 'migrate_custom' do | |
ActiveRecord::ConnectionAdapters::TableDefinition.prepend( | |
CoreExtensions::ActiveRecord::ConnectionAdapters::TableDefinition | |
) | |
Rake::Task['db:migrate'].invoke | |
end | |
end | |
module CoreExtensions |
This file contains hidden or 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
config.generators do |g| | |
g.assets false | |
g.helper false | |
g.scaffold_controller false | |
g.erb false | |
g.resource_route false | |
g.test_framework :rspec, | |
fixtures: true, | |
controller_specs: true, | |
helper_specs: false, |
This file contains hidden or 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
# curl https://gist.githubusercontent.com/smapira/80b890029fbe08ddeacd4ada6f338a83/raw --output .pryrc | |
begin | |
require 'hirb' | |
rescue LoadError | |
# Missing goodies, bummer | |
end | |
if defined? Hirb | |
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling |
This file contains hidden or 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
!log/.keep | |
!public/assets/.keep | |
!tmp/.keep | |
.bundle | |
.byebug_history | |
.circleci | |
.env | |
.env.* | |
.git/* | |
.github |
This file contains hidden or 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
# curl https://gist.githubusercontent.com/smapira/cc6a50f82cea034b07f02088c06b65dd/raw --output Makefile | |
## ============================== | |
## database organizations | |
## ============================== | |
drop-db: | |
bundle exec rails db:environment:set RAILS_ENV=development && bundle exec rake db:drop | |
create-db: |
This file contains hidden or 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
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
docker: | |
# specify the version you desire here | |
- image: circleci/ruby:2.6.2-node-browsers |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Execute script from URL | |
# curl -s https://gist.githubusercontent.com/smapira/f0a46b802fc2ad823b68423e2ed74ef5/raw | sh | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done |
This file contains hidden or 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
# Created by .ignore support plugin (hsz.mobi) | |
### macOS template | |
*.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails |
This file contains hidden or 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
# frozen_string_literal: true | |
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem 'aasm' # Ruby state machines | |
gem 'active_model_serializers' # implementation and Rails hooks | |
gem 'ahoy_email' # First-party email analytics | |
gem 'ahoy_matey' # First-party analytics | |
gem 'blind_index' # Securely search encrypted database fields |
This file contains hidden or 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
AllCops: | |
Exclude: | |
- 'vendor/**/*' | |
- 'db/seeds.rb' | |
- 'db/seeds/**/*' | |
- 'db/schema.rb' | |
- 'db/migrate/**/*' | |
- 'node_modules/**/*' | |
- 'config/initializers/**/*' | |
- 'bin/**/*' |