memo.xight.org

日々のメモ

RubyMine + IdeaVim

Summary

RubyMine を vim のキーバインドで使いたい。

$HOME/.ideavimrc

" clipboard sharing
set clipboard+=unnamed

RubyMine - [Preferences...] - [Keymap]

Plug-ins - IdeaVim - Scroll Half Page Down に Command+D
Plug-ins - IdeaVim - Scroll Half Page Up に Command+U
Plug-ins - IdeaVim - Redo に Ctrl+R

Reference

JetBrains - Plugins - IdeaVim
https://plugins.jetbrains.com/plugin/164-ideavim

Heroku app の作成

作成

$ heroku create
Creating app... done, ⬢ heroku-appname-00000
https://heroku-appname-00000.herokuapp.com/ | https://git.heroku.com/heroku-appname-00000.git


一覧表示

$ heroku list
=== user@example.com Apps
heroku-appname-00000
heroku-appname-11111
heroku-appname-22222


削除

$ heroku apps:destroy --app heroku-appname-00000 --confirm heroku-appname-00000
 ▸    WARNING: This will delete ⬢ heroku-appname-00000 including all add-ons.
 ▸    To proceed, type heroku-appname-00000 or re-run this command with --confirm
 ▸    heroku-appname-00000

> (ここに heroku-appname-00000 を入力)
Destroying ⬢ heroku-appname-00000 (including all add-ons)... done

削除 (確認なし)

$ heroku apps:destroy --app heroku-appname-00000 --confirm heroku-appname-00000
Destroying ⬢ heroku-appname-00000 (including all add-ons)... done

Railsでカラム名の変更

Terminal

rails generate migration fix_typo


db/migrate/XXXXXXXXXXXXXXXX_fix_typo.rb

class ChangeColumnModelName < ActiveRecord::Migration[5.0]
  def change
	rename_column :modelname, :wrong, :correct
  end
end

Terminal

rake db:migrate