Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Mass replacement

perl -pi -e 's/old_string/new_string/g' file_pattern

Local gem development

bundle config local.releaf ~/code/releafbundle config --delete local.releaf

Branch scoped database

git config --bool branch.automatching.database true

database.yml

<%
# http://mislav.uniqpath.com/rails/branching-the-database-along-with-your-code/
branch = `git symbolic-ref HEAD 2>/dev/null`.chomp.sub('refs/heads/', '')
suffix = `git config --bool branch.#{branch}.database`.chomp == 'true' ? "#{branch}" : "master"
%>
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: database_<%= suffix %>
username: root

Squash old rails migrations

https://github.com/jalkoby/squasher

Disable rails logger in console

ActiveRecord::Base.logger = nil

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors