- Ruby 2.1.5
- Rails 4.1.8
- git 1.9.4
プロンプトが出てくるので名前とメールアドレスを入力
プロンプトが出てくるので名前とメールアドレスを入力
| class CreateBooks < ActiveRecord::Migration | |
| def up | |
| create_table :books do |t| | |
| t.string :name | |
| t.integer :price | |
| t.timestamps | |
| end | |
| execute 'ALTER TABLE books MODIFY id bigint(20) DEFAULT NULL auto_increment NOT NULL' | |
| end |
| public enum HogeType { | |
| HOGE(1), | |
| FUGA(2), | |
| POKE(3), | |
| PIYO(4); | |
| private int hogehoge; | |
| private HogeType(int i) { | |
| this.hogehoge = i; |
| CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" rbenv install -v 2.0.0-dev |
| ;; ~/.emacs.d/lispにパスを通す | |
| (let ((default-directory (expand-file-name "~/.emacs.d/lisp"))) | |
| (add-to-list 'load-path default-directory) | |
| (if (fboundp 'normal-top-level-add-subdirs-to-load-path) | |
| (normal-top-level-add-subdirs-to-load-path))) | |
| (setq load-path (cons "~/.emacs.d/emacs-rails" load-path)) | |
| (setq load-path (cons "~/.emacs.d/color-theme" load-path)) | |
| (setq load-path (cons "~/.emacs.d/auto-install" load-path)) | |
| (setq load-path (cons "~/.emacs.d/twittering-mode" load-path)) |
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| #ZSH_THEME="bira" | |
| ZSH_THEME="robbyrussell" | |
| # Example aliases |