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
| #!/usr/bin/env bash | |
| ####################################################################### | |
| ## | |
| # | |
| # Basic Slack notifier | |
| # | |
| # Author: Freibuis | |
| # Web: https://github.com/freibuis | |
| # Inspiration: The Internet! |
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
| #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 |