Skip to content

Instantly share code, notes, and snippets.

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

Bruno Arueira brunoarueira

🏠
Working from home
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
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