Skip to content

Instantly share code, notes, and snippets.

View brunoarueira's full-sized avatar
🏠
Working from home since 2012

Bruno Arueira brunoarueira

🏠
Working from home since 2012
View GitHub Profile
# frozen_string_literal: true
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
bruno_arueira 2.2.0p0 (master) $ bundle exec rake listen ~/t/w/r/isabella
INFO: cmd_ln.c(697): Parsing command line:
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-allphone
-allphone_ci no no
class ComentariosLegadosMigrations < ActiveRecord::Migration
MIGRATIONS_PATH='db/migrate/comentarios_legados_migrations'
def self.up
Dir["#{MIGRATIONS_PATH}/[0-9]*_*.rb"].
sort.map{|filename|require filename}.flatten.
each{|class_name| const_get(class_name).up}
end
def self.down