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
docker run -it -v ${PWD}:/usr/src/app ruby:2.6 bash # iniciar bash para instalar rails usando una version de ruby especifica. |
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
docker run -it -v ${PWD}:/usr/src/app ruby:2.6 bash # iniciar bash para instalar rails usando una version de ruby especifica. |
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
require_relative "./row" | |
class Migrator::Base | |
def initialize(configs:) | |
@configs = configs | |
@headers = configs.map { |config| config[:name] } | |
end | |
def valid_row(values) | |
row = Migrator::Row.new(configs: @configs, values: values) |
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
# Gemfile | |
source 'https://rubygems.org' | |
gem 'rspec' | |
gem 'webmock' |
OlderNewer