Skip to content

Instantly share code, notes, and snippets.

View freibuis's full-sized avatar
🐛

Freibuis freibuis

🐛
  • Gold Coast
View GitHub Profile
#!/usr/bin/env bash
#######################################################################
##
#
# Basic Slack notifier
#
# Author: Freibuis
# Web: https://github.com/freibuis
# Inspiration: The Internet!
@Yorgg
Yorgg / badge_creator.rb
Last active November 21, 2023 13:21
Creating badge and achievements functionality in Ruby on Rails
#Step 1 - Create achievement, badge, and user models
#Create an Achivement model
#This will contain all of the achievements
#model
class Achievement < ActiveRecord::Base
has_many :badges
has_many :users, through: :badges
end