Skip to content

Instantly share code, notes, and snippets.

View Muddan's full-sized avatar
🎯
Focusing

Mithun Kumar MS Muddan

🎯
Focusing
View GitHub Profile
@Muddan
Muddan / user.rb
Last active August 29, 2015 14:19 — forked from harlow/user.rb
# app/models/user.rb
class User < ActiveRecord::Base
validates :zip_code, presence: true, zip_code: true
end
@Muddan
Muddan / Commands
Last active August 29, 2015 14:19 — forked from harshamv/Commands
# Create a new Rails Project
rails new <project-name> -d mysql
# Run Bundler
bundle install
# Database Initiation
rake db:create
# Dump SQL file into MySQL