repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/shot_presenter.rb
app/models/concerns/shot_presenter.rb
module ShotPresenter %i[bean_weight drink_weight drink_tds drink_ey].each do |attribute| define_method(:"#{attribute}_f") do public_send(attribute).to_f.truncate(4) end end def weight_ratio drink_weight_f / bean_weight_f end def weight_and_ratio_info weight_parts = [] weight_parts ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/date_parseable.rb
app/models/concerns/date_parseable.rb
module DateParseable def parse_date(input, date_format_string) date_string = input.to_s begin Date.strptime(date_string, date_format_string) rescue Date::Error Date.parse(date_string) end rescue Date::Error nil end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/lockable.rb
app/models/concerns/lockable.rb
module Lockable def with_lock!(name, ttl: 30, attempts: 1, &block) raise ArgumentError, "Block required" unless block PgLock.new(name:, ttl:, attempts:).lock!(&block) end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/sluggable.rb
app/models/concerns/sluggable.rb
module Sluggable extend ActiveSupport::Concern class_methods do attr_reader :slug_source, :slug_scope def find_by_slug_or_id(slug_or_id) find_by(slug: slug_or_id) || find_by(id: slug_or_id) end def find_by_slug_or_id!(slug_or_id) find_by(slug: slug_or_id) || find(slug_or_id) end ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/squishable.rb
app/models/concerns/squishable.rb
module Squishable extend ActiveSupport::Concern included do before_validation :squish_attributes end class_methods do attr_reader :squishable_attributes def squishes(*attributes) @squishable_attributes = attributes end end private def squish_attributes self.class.squishable_...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/concerns/airtablable.rb
app/models/concerns/airtablable.rb
module Airtablable extend ActiveSupport::Concern included do attr_accessor :skip_airtable_sync after_save_commit :sync_to_airtable after_destroy_commit :cleanup_airtable end class_methods do def airtable_class "Airtable::#{name.pluralize}".constantize end end private def syn...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/roasters.rb
app/models/airtable/roasters.rb
module Airtable class Roasters < Base DB_TABLE_NAME = :roasters TABLE_NAME = "Roasters".freeze TABLE_DESCRIPTION = "Roasters from Visualizer".freeze STANDARD_FIELDS = %w[ website ].index_by { |f| f.to_s.humanize } FIELD_OPTIONS = { "website" => {type: "url"} }.freeze priva...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/token_error.rb
app/models/airtable/token_error.rb
module Airtable class TokenError < StandardError end class BaseError < StandardError end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/communication.rb
app/models/airtable/communication.rb
module Airtable module Communication API_URL = "https://api.airtable.com/v0".freeze attr_reader :airtable_info def upload(record) if record.airtable_id update_record(record.airtable_id, prepare_record(record)) else upload_multiple(record.class.where(id: record.id)) end ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/base.rb
app/models/airtable/base.rb
module Airtable class Base include Rails.application.routes.url_helpers include Communication attr_reader :user, :identity, :table_description, :airtable_info def initialize(user) @user = user prepare_related_tables set_identity @airtable_info = identity.airtable_info || crea...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/coffee_bags.rb
app/models/airtable/coffee_bags.rb
module Airtable class CoffeeBags < Base DB_TABLE_NAME = :coffee_bags TABLE_NAME = "Coffee Bags".freeze TABLE_DESCRIPTION = "Coffee Bags from Visualizer".freeze STANDARD_FIELDS = %w[ country elevation farm farmer harvest_time processing quality_score region roast_date roast_level variety tasting_...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/shots.rb
app/models/airtable/shots.rb
module Airtable class Shots < Base DB_TABLE_NAME = :shots TABLE_NAME = "Shots".freeze TABLE_DESCRIPTION = "Shots from Visualizer".freeze STANDARD_FIELDS = %w[ espresso_enjoyment profile_title duration barista bean_weight drink_weight grinder_model grinder_setting bean_brand bean_type roast...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/airtable/data_error.rb
app/models/airtable/data_error.rb
module Airtable class DataError < StandardError prepend MemoWise attr_reader :data, :response def initialize(data: nil, response: nil) @data = data @response = response Appsignal.set_custom_data(api_data: data, api_response: airtable_body) super(airtable_errors.map { |e| "#{e["ty...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/shot_chart/parsed_shot.rb
app/models/shot_chart/parsed_shot.rb
class ShotChart class ParsedShot prepend MemoWise include Bsearch DATA_LABELS_MAP = {"weight" => "espresso_weight", "waterFlow" => "espresso_flow", "realtimeFlow" => "espresso_flow_weight", "pressureFlow" => "espresso_pressure", "temperatureFlow" => "espresso_temperature_mix"}.freeze DATA_VALUES_MAP ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/shot_chart/additional_charts.rb
app/models/shot_chart/additional_charts.rb
class ShotChart module AdditionalCharts MAX_RESISTANCE_VALUE = 19 MIN_CONDUCTANCE_DIFF_VALUE = -5 GAUSSIAN_MULTIPLIERS = [0.048297, 0.08393, 0.124548, 0.157829, 0.170793, 0.157829, 0.124548, 0.08393, 0.048297].freeze def resistance_chart(pressure_data, flow_data) pressure_data.map.with_index do...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/shot_chart/process.rb
app/models/shot_chart/process.rb
class ShotChart module Process DATA_LABELS_TO_IGNORE = %w[espresso_resistance espresso_resistance_weight espresso_state_change].freeze def process_data(parsed_shot, label_suffix: nil) timeframe = parsed_shot.timeframe timeframe_count = timeframe.count timeframe_last = timeframe.last.to_f ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/shot/jsonable.rb
app/models/shot/jsonable.rb
class Shot module Jsonable extend ActiveSupport::Concern ALLOWED_ATTRIBUTES = %w[id duration profile_title user_id drink_tds drink_ey espresso_enjoyment bean_weight drink_weight grinder_model grinder_setting bean_brand bean_type roast_date espresso_notes roast_level bean_notes barista].freeze ALLOWED_FOR...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/base.rb
app/models/parsers/base.rb
module Parsers class Base prepend MemoWise include Bsearch PROFILE_FIELDS = %w[advanced_shot author beverage_type espresso_decline_time espresso_hold_time espresso_pressure espresso_temperature espresso_temperature_0 espresso_temperature_1 espresso_temperature_2 espresso_temperature_3 espresso_temperatur...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/decent_json.rb
app/models/parsers/decent_json.rb
module Parsers class DecentJson < Base JSON_MAPPING = {"_weight" => "by_weight", "_weight_raw" => "by_weight_raw", "_goal" => "goal"}.freeze def parse @start_time = Time.at(json["timestamp"].to_i).utc @timeframe = json["elapsed"] @profile_fields["json"] = json["profile"] @profile_titl...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/beanconqueror.rb
app/models/parsers/beanconqueror.rb
module Parsers class Beanconqueror < Base def parse @start_time = Time.at(json.dig("brew", "config", "unix_timestamp").to_i).utc @profile_title = json.dig("preparation", "name").presence || "Beanconqueror" @brewdata = json set_extra set_drink_weight fake_timeframe end ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/decent_tcl.rb
app/models/parsers/decent_tcl.rb
module Parsers class DecentTcl < Base DATA_LABELS = %w[espresso_pressure espresso_weight espresso_flow espresso_flow_weight espresso_temperature_basket espresso_temperature_mix espresso_water_dispensed espresso_temperature_goal espresso_flow_weight_raw espresso_pressure_goal espresso_flow_goal espresso_state_chan...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/gaggiuino.rb
app/models/parsers/gaggiuino.rb
module Parsers class Gaggiuino < Base DATA_LABELS_MAP = { "pressure" => "espresso_pressure", "pumpFlow" => "espresso_flow", "shotWeight" => "espresso_weight", "targetPressure" => "espresso_pressure_goal", "targetPumpFlow" => "espresso_flow_goal", "targetTemperature" => "espress...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/sep_csv.rb
app/models/parsers/sep_csv.rb
require "csv" module Parsers class SepCsv < Base DATA_LABELS_MAP = { weight: "espresso_weight", pressure: "espresso_pressure", flow_weight: "espresso_flow_weight", temperature_mix: "espresso_temperature_mix" }.freeze MAPPING = { "Roastery" => "bean_brand", "Beans" => "...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/models/parsers/gaggimate.rb
app/models/parsers/gaggimate.rb
module Parsers class Gaggimate < Base DATA_LABELS_MAP = { "cp" => "espresso_pressure", "fl" => "espresso_flow", "tp" => "espresso_pressure_goal", "tf" => "espresso_flow_goal", "tt" => "espresso_temperature_goal", "ct" => "espresso_temperature_mix" } EXTRA_LABELS = %w[es...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/lemon_squeezy.rb
app/lib/lemon_squeezy.rb
require "net/http" require "json" require "uri" class LemonSqueezy def create_checkout(data) Client.new("/checkouts", method: :post, data:).make_request end def get_customer(id) Client.new("/customers/#{id}").make_request end def get_customers(params: {}) Client.new("/customers", params:).make_...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/auth_constraint.rb
app/lib/auth_constraint.rb
class AuthConstraint def self.admin?(request) cookies = ActionDispatch::Cookies::CookieJar.build(request, request.cookies) User.joins(:sessions).exists?(sessions: {id: cookies.signed[:session_id]}, admin: true) end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/coffee_bag_scraper.rb
app/lib/coffee_bag_scraper.rb
class CoffeeBagScraper def get_info(url) scraped_content = page_content(url) response = OpenAi.new.message(scraped_content) JSON.parse(response).compact_blank rescue StandardError => e Appsignal.report_error(e) {error: e.message} end private def page_content(url, limit = 5) raise Arg...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/open_ai.rb
app/lib/open_ai.rb
class OpenAi API_ENDPOINT = "https://api.openai.com/v1/responses".freeze API_KEY = Rails.application.credentials.open_ai.api_key MODEL = "gpt-5-nano".freeze PROMPT_ID = Rails.application.credentials.open_ai.prompt_id def message(content, attempt: 1) uri = URI(API_ENDPOINT) http = Net::HTTP.new(uri.ho...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/simple_downloader.rb
app/lib/simple_downloader.rb
class SimpleDownloader prepend MemoWise attr_reader :uri, :request, :http def initialize(url) @uri = URI(url) @request = Net::HTTP::Get.new(uri) @http = Net::HTTP.new(uri.host, uri.port) @http.use_ssl = true end memo_wise def response http.request(request) end def body response...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/lib/lemon_squeezy/client.rb
app/lib/lemon_squeezy/client.rb
class LemonSqueezy class SignatureVerificationError < StandardError; end class APIError < StandardError attr_reader :code def initialize(message, code) @code = code super(message) end end class Client BASE_URL = "https://api.lemonsqueezy.com/v1".freeze attr_reader :api_key, :...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/mailers/application_mailer.rb
app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base before_action :check_subscription default from: email_address_with_name("miha@visualizer.coffee", "Miha from Visualizer"), message_stream: -> { notification_exists? ? "broadcast" : "outbound" } layout "mailer" helper_method :notification_exists? rescue_from(Excep...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/mailers/user_mailer.rb
app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer def yearly_brew @user = params[:user] @yearly_brew = YearlyBrew.new(@user, 2024) mail to: @user.email, subject: "Bean Counting 2024: Your Year on Visualizer" end def black_friday @user = params[:user] mail to: @user.email, subject: "A Different Kind of Bl...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/app/mailers/passwords_mailer.rb
app/mailers/passwords_mailer.rb
class PasswordsMailer < ApplicationMailer def reset(user) @user = user mail subject: "Reset your password", to: user.email end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/seeds.rb
db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Ch...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/queue_schema.rb
db/queue_schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/cache_schema.rb
db/cache_schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/schema.rb
db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/cable_schema.rb
db/cable_schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240217074642_add_decent_token_to_user.rb
db/migrate/20240217074642_add_decent_token_to_user.rb
class AddDecentTokenToUser < ActiveRecord::Migration[7.1] def change add_column :users, :decent_email, :string add_column :users, :decent_token, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220112135122_add_slug_to_change.rb
db/migrate/20220112135122_add_slug_to_change.rb
class AddSlugToChange < ActiveRecord::Migration[7.0] def change add_column :changes, :slug, :string add_index :changes, :slug, unique: true end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250801153421_enable_unaccent.rb
db/migrate/20250801153421_enable_unaccent.rb
class EnableUnaccent < ActiveRecord::Migration[8.0] def change enable_extension "unaccent" end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20241012083219_drop_solid_from_pg.rb
db/migrate/20241012083219_drop_solid_from_pg.rb
class DropSolidFromPg < ActiveRecord::Migration[8.0] def change drop_table :solid_cable_messages drop_table :solid_cache_entries end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20231122082240_add_last_cursor_to_airtable_info.rb
db/migrate/20231122082240_add_last_cursor_to_airtable_info.rb
class AddLastCursorToAirtableInfo < ActiveRecord::Migration[7.1] def change add_column :airtable_infos, :last_cursor, :integer end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230520171134_add_excerpt_to_change.rb
db/migrate/20230520171134_add_excerpt_to_change.rb
class AddExcerptToChange < ActiveRecord::Migration[7.0] def change add_column :changes, :excerpt, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20211206105934_active_storage_uuid.rb
db/migrate/20211206105934_active_storage_uuid.rb
class ActiveStorageUuid < ActiveRecord::Migration[7.0] class MigrationAttachment < ApplicationRecord self.table_name = :active_storage_attachments end class MigrationBlob < ApplicationRecord self.table_name = :active_storage_blobs end def up attachments = MigrationAttachment.all.map(&:attributes...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251009093630_add_webauthn_id_to_user.rb
db/migrate/20251009093630_add_webauthn_id_to_user.rb
class AddWebauthnIdToUser < ActiveRecord::Migration[8.1] def change add_column :users, :webauthn_id, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210201065142_add_timezone_to_user.rb
db/migrate/20210201065142_add_timezone_to_user.rb
class AddTimezoneToUser < ActiveRecord::Migration[6.1] def change add_column :users, :timezone, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220528153353_add_temperature_unit_to_user.rb
db/migrate/20220528153353_add_temperature_unit_to_user.rb
class AddTemperatureUnitToUser < ActiveRecord::Migration[7.0] def change add_column :users, :temperature_unit, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250918101517_add_communication_to_user.rb
db/migrate/20250918101517_add_communication_to_user.rb
class AddCommunicationToUser < ActiveRecord::Migration[8.1] def change add_column :users, :communication, :jsonb end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230925140729_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
db/migrate/20230925140729_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
# This migration comes from active_storage (originally 20211119233751) class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) change_column_null(:active_storage_blobs, :checksum, true) end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210422082611_add_github_to_user.rb
db/migrate/20210422082611_add_github_to_user.rb
class AddGithubToUser < ActiveRecord::Migration[6.1] def change add_column :users, :github, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240405184214_add_coffee_bag_to_shot.rb
db/migrate/20240405184214_add_coffee_bag_to_shot.rb
class AddCoffeeBagToShot < ActiveRecord::Migration[7.1] def change add_reference :shots, :coffee_bag, foreign_key: true, type: :uuid end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251009093757_create_webauthn_credentials.rb
db/migrate/20251009093757_create_webauthn_credentials.rb
class CreateWebauthnCredentials < ActiveRecord::Migration[8.1] def change create_table :webauthn_credentials, id: :uuid do |t| t.references :user, null: false, foreign_key: true, type: :uuid t.string :external_id, null: false t.string :public_key, null: false t.string :nickname t.int...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251003111653_add_archived_at_to_coffee_bags.rb
db/migrate/20251003111653_add_archived_at_to_coffee_bags.rb
class AddArchivedAtToCoffeeBags < ActiveRecord::Migration[8.1] def change add_column :coffee_bags, :archived_at, :datetime end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240802133224_remove_unneeded_index.rb
db/migrate/20240802133224_remove_unneeded_index.rb
class RemoveUnneededIndex < ActiveRecord::Migration[7.1] def change remove_index :roasters, name: :index_roasters_on_user_id, column: :user_id end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20241205115746_remove_s3etag_from_shots.rb
db/migrate/20241205115746_remove_s3etag_from_shots.rb
class RemoveS3etagFromShots < ActiveRecord::Migration[8.0] def change remove_column :shots, :s3_etag, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250802163118_add_canonical_coffee_bag_to_shot.rb
db/migrate/20250802163118_add_canonical_coffee_bag_to_shot.rb
class AddCanonicalCoffeeBagToShot < ActiveRecord::Migration[8.0] def change add_reference :shots, :canonical_coffee_bag, foreign_key: true, type: :uuid end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20221004091352_create_shot_informations.rb
db/migrate/20221004091352_create_shot_informations.rb
class CreateShotInformations < ActiveRecord::Migration[7.0] def change # rubocop:disable Rails/CreateTableWithTimestamps create_table :shot_informations, id: :uuid do |t| t.references :shot, null: false, foreign_key: true, type: :uuid t.jsonb :data t.jsonb :extra t.jsonb :profile_field...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20211128082949_add_user_to_shared_shot.rb
db/migrate/20211128082949_add_user_to_shared_shot.rb
class AddUserToSharedShot < ActiveRecord::Migration[7.0] def change add_reference :shared_shots, :user, foreign_key: true, type: :uuid end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250117193538_drop_customer_and_subscriptions_table.rb
db/migrate/20250117193538_drop_customer_and_subscriptions_table.rb
class DropCustomerAndSubscriptionsTable < ActiveRecord::Migration[8.0] def up drop_table :subscriptions drop_table :customers end def down raise ActiveRecord::IrreversibleMigration end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230925140728_create_active_storage_variant_records.active_storage.rb
db/migrate/20230925140728_create_active_storage_variant_records.active_storage.rb
# This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) # Use Active Record's configured type for primary key create_table :active_storage_variant_records, i...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251031071044_change_dropdown_values_value_null_constraint.rb
db/migrate/20251031071044_change_dropdown_values_value_null_constraint.rb
class ChangeDropdownValuesValueNullConstraint < ActiveRecord::Migration[8.1] def change change_column_null :dropdown_values, :value, false end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20211128110221_add_stripe_to_user.rb
db/migrate/20211128110221_add_stripe_to_user.rb
class AddStripeToUser < ActiveRecord::Migration[7.0] def change add_column :users, :stripe_customer_id, :string add_column :users, :premium_expires_at, :datetime end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240824092548_change_solid_queue_recurring_tasks_static_to_not_null.solid_queue.rb
db/migrate/20240824092548_change_solid_queue_recurring_tasks_static_to_not_null.solid_queue.rb
# This migration comes from solid_queue (originally 20240819165045) class ChangeSolidQueueRecurringTasksStaticToNotNull < ActiveRecord::Migration[7.1] def change change_column_null :solid_queue_recurring_tasks, :static, false, true end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220629084903_remove_unneeded_indexes.rb
db/migrate/20220629084903_remove_unneeded_indexes.rb
class RemoveUnneededIndexes < ActiveRecord::Migration[7.0] def change remove_index :shots, name: "index_shots_on_user_id", column: :user_id end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230412150105_add_metadata_to_shot.rb
db/migrate/20230412150105_add_metadata_to_shot.rb
class AddMetadataToShot < ActiveRecord::Migration[7.0] def change add_column :shots, :metadata, :jsonb end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20231208131335_add_unsubscribed_from_to_user.rb
db/migrate/20231208131335_add_unsubscribed_from_to_user.rb
class AddUnsubscribedFromToUser < ActiveRecord::Migration[7.1] def change add_column :users, :unsubscribed_from, :jsonb end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20211020142725_add_beta_to_user.rb
db/migrate/20211020142725_add_beta_to_user.rb
class AddBetaToUser < ActiveRecord::Migration[7.0] def change add_column :users, :beta, :boolean # rubocop:disable Rails/ThreeStateBooleanColumn end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20231215114026_add_brewdata_to_shot_information.rb
db/migrate/20231215114026_add_brewdata_to_shot_information.rb
class AddBrewdataToShotInformation < ActiveRecord::Migration[7.1] def change add_column :shot_informations, :brewdata, :jsonb end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251219120300_add_start_time_to_user_index_on_shot.rb
db/migrate/20251219120300_add_start_time_to_user_index_on_shot.rb
class AddStartTimeToUserIndexOnShot < ActiveRecord::Migration[8.1] disable_ddl_transaction! def change add_index :shots, [:user_id, :start_time], algorithm: :concurrently remove_index :shots, :user_id end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251031071053_change_shots_null_constraints.rb
db/migrate/20251031071053_change_shots_null_constraints.rb
class ChangeShotsNullConstraints < ActiveRecord::Migration[8.1] class MigrationShot < ApplicationRecord self.table_name = :shots end def change reversible do |dir| dir.up do MigrationShot.where(public: nil).update_all(public: false) end end change_column_null :shots, :start_t...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250903121331_add_canonical_coffee_bag_to_coffee_bags.rb
db/migrate/20250903121331_add_canonical_coffee_bag_to_coffee_bags.rb
class AddCanonicalCoffeeBagToCoffeeBags < ActiveRecord::Migration[8.0] def change add_reference :coffee_bags, :canonical_coffee_bag, null: true, foreign_key: true, type: :uuid end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210907052153_add_deleted_at_to_shots.rb
db/migrate/20210907052153_add_deleted_at_to_shots.rb
class AddDeletedAtToShots < ActiveRecord::Migration[6.1] def change add_column :shots, :deleted_at, :datetime end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240223084909_drop_redundant_index.rb
db/migrate/20240223084909_drop_redundant_index.rb
class DropRedundantIndex < ActiveRecord::Migration[7.1] def change remove_index :shots, %i[user_id created_at] end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240927120602_create_sessions.rb
db/migrate/20240927120602_create_sessions.rb
class CreateSessions < ActiveRecord::Migration[8.0] def change create_table :sessions, id: :uuid do |t| t.references :user, null: false, foreign_key: true, type: :uuid t.string :ip_address t.string :user_agent t.timestamps end end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240927122718_remove_devise_columns.rb
db/migrate/20240927122718_remove_devise_columns.rb
class RemoveDeviseColumns < ActiveRecord::Migration[8.0] def change rename_column :users, :encrypted_password, :password_digest remove_column :users, :reset_password_token, :string remove_column :users, :reset_password_sent_at, :datetime remove_column :users, :remember_created_at, :datetime end end...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20241119132141_drop_solid_queue_from_pg.rb
db/migrate/20241119132141_drop_solid_queue_from_pg.rb
class DropSolidQueueFromPg < ActiveRecord::Migration[8.0] def change drop_table "solid_queue_blocked_executions" drop_table "solid_queue_claimed_executions" drop_table "solid_queue_failed_executions" drop_table "solid_queue_pauses" drop_table "solid_queue_processes" drop_table "solid_queue_rea...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210127072929_drop_delayed_jobs.rb
db/migrate/20210127072929_drop_delayed_jobs.rb
class DropDelayedJobs < ActiveRecord::Migration[6.1] def up drop_table :delayed_jobs end def down raise ActiveRecord::IrreversibleMigration end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240405184210_create_subscriptions.rb
db/migrate/20240405184210_create_subscriptions.rb
class CreateSubscriptions < ActiveRecord::Migration[7.1] def change create_table :subscriptions, id: :uuid do |t| t.references :customer, null: false, foreign_key: true, type: :uuid t.string :stripe_id, index: true t.string :status t.string :interval t.datetime :started_at t.da...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240824092547_make_name_not_null.solid_queue.rb
db/migrate/20240824092547_make_name_not_null.solid_queue.rb
# This migration comes from solid_queue (originally 20240813160053) class MakeNameNotNull < ActiveRecord::Migration[7.1] def up SolidQueue::Process.where(name: nil).find_each do |process| process.name ||= [process.kind.downcase, SecureRandom.hex(10)].join("-") process.save! end change_column ...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210907095039_remove_deleted_at_from_shots.rb
db/migrate/20210907095039_remove_deleted_at_from_shots.rb
class RemoveDeletedAtFromShots < ActiveRecord::Migration[6.1] def change remove_column :shots, :deleted_at, :datetime end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220302103447_remove_cloudinary_id_from_shots.rb
db/migrate/20220302103447_remove_cloudinary_id_from_shots.rb
class RemoveCloudinaryIdFromShots < ActiveRecord::Migration[7.0] def change remove_column :shots, :cloudinary_id, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20201120143406_create_shots.rb
db/migrate/20201120143406_create_shots.rb
class CreateShots < ActiveRecord::Migration[6.0] def change create_table :shots, id: :uuid do |t| t.datetime :start_time t.jsonb :data t.timestamps end end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230925140727_add_service_name_to_active_storage_blobs.active_storage.rb
db/migrate/20230925140727_add_service_name_to_active_storage_blobs.active_storage.rb
# This migration comes from active_storage (originally 20190112182829) class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] def up return unless table_exists?(:active_storage_blobs) unless column_exists?(:active_storage_blobs, :service_name) add_column :active_storage_blobs, :service...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240222144439_add_public_to_shots.rb
db/migrate/20240222144439_add_public_to_shots.rb
class AddPublicToShots < ActiveRecord::Migration[7.1] def change add_column :shots, :public, :boolean end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240815061156_create_recurring_tasks.solid_queue.rb
db/migrate/20240815061156_create_recurring_tasks.solid_queue.rb
# This migration comes from solid_queue (originally 20240719134516) class CreateRecurringTasks < ActiveRecord::Migration[7.1] def change create_table :solid_queue_recurring_tasks do |t| t.string :key, null: false, index: {unique: true} t.string :schedule, null: false t.string :command, limit: 20...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250926090251_add_place_of_purchase_to_coffee_bean.rb
db/migrate/20250926090251_add_place_of_purchase_to_coffee_bean.rb
class AddPlaceOfPurchaseToCoffeeBean < ActiveRecord::Migration[8.1] def change add_column :coffee_bags, :place_of_purchase, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220121083139_add_developer_to_user.rb
db/migrate/20220121083139_add_developer_to_user.rb
class AddDeveloperToUser < ActiveRecord::Migration[7.0] def change add_column :users, :developer, :boolean # rubocop:disable Rails/ThreeStateBooleanColumn end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20240929081659_add_index_for_roaster_and_coffee.rb
db/migrate/20240929081659_add_index_for_roaster_and_coffee.rb
class AddIndexForRoasterAndCoffee < ActiveRecord::Migration[8.0] disable_ddl_transaction! def change enable_extension :pg_trgm add_index :shots, :bean_brand, opclass: :gin_trgm_ops, using: :gin, algorithm: :concurrently add_index :shots, :bean_type, opclass: :gin_trgm_ops, using: :gin, algorithm: :conc...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20211016154941_add_last_read_change_to_user.rb
db/migrate/20211016154941_add_last_read_change_to_user.rb
class AddLastReadChangeToUser < ActiveRecord::Migration[7.0] def change add_column :users, :last_read_change, :datetime end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210122105314_add_bean_notes_to_shot.rb
db/migrate/20210122105314_add_bean_notes_to_shot.rb
class AddBeanNotesToShot < ActiveRecord::Migration[6.1] def change add_column :shots, :bean_notes, :text end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20230412152932_add_metadata_fields_to_user.rb
db/migrate/20230412152932_add_metadata_fields_to_user.rb
class AddMetadataFieldsToUser < ActiveRecord::Migration[7.0] def change add_column :users, :metadata_fields, :jsonb end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220120115446_create_doorkeeper_tables.rb
db/migrate/20220120115446_create_doorkeeper_tables.rb
class CreateDoorkeeperTables < ActiveRecord::Migration[7.0] def change create_table :oauth_applications, id: :uuid do |t| t.string :name, null: false t.string :uid, null: false t.string :secret, null: false # Remove `null: false` if you are planning to use grant flows # that doesn't...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20250727111213_create_canonical_roasters.rb
db/migrate/20250727111213_create_canonical_roasters.rb
class CreateCanonicalRoasters < ActiveRecord::Migration[8.0] def change create_table :canonical_roasters, id: :uuid do |t| t.string :name t.string :website t.string :country t.string :address t.string :loffee_labs_id t.timestamps end end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210513075549_add_s3_etag_to_shots.rb
db/migrate/20210513075549_add_s3_etag_to_shots.rb
class AddS3EtagToShots < ActiveRecord::Migration[6.1] def change add_column :shots, :s3_etag, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20210317072303_add_hide_shot_times_to_user.rb
db/migrate/20210317072303_add_hide_shot_times_to_user.rb
class AddHideShotTimesToUser < ActiveRecord::Migration[6.1] def change add_column :users, :hide_shot_times, :boolean # rubocop:disable Rails/ThreeStateBooleanColumn end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20241213110931_create_tags.rb
db/migrate/20241213110931_create_tags.rb
class CreateTags < ActiveRecord::Migration[8.0] def change create_table :tags, id: :uuid do |t| t.string :name, null: false t.string :slug, null: false t.references :user, null: false, foreign_key: true, type: :uuid t.timestamps end add_index :tags, [:user_id, :slug], unique: tru...
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20251031071041_change_identities_uid_null_constraint.rb
db/migrate/20251031071041_change_identities_uid_null_constraint.rb
class ChangeIdentitiesUidNullConstraint < ActiveRecord::Migration[8.1] def change change_column_null :identities, :uid, false end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20220528164833_add_barista_to_shot.rb
db/migrate/20220528164833_add_barista_to_shot.rb
class AddBaristaToShot < ActiveRecord::Migration[7.0] def change add_column :shots, :barista, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false
miharekar/visualizer
https://github.com/miharekar/visualizer/blob/2c24602948f183e5c6e7d639fd97ee1aff4d23ca/db/migrate/20241208084540_add_tasting_notes_to_coffee_bags.rb
db/migrate/20241208084540_add_tasting_notes_to_coffee_bags.rb
class AddTastingNotesToCoffeeBags < ActiveRecord::Migration[8.0] def change add_column :coffee_bags, :tasting_notes, :string end end
ruby
MIT
2c24602948f183e5c6e7d639fd97ee1aff4d23ca
2026-01-04T17:41:55.482911Z
false