mysqlのカラムの値を全部変更
UPDATE tabele_name SET colum_name = value;
DBに絵文字を入れる時の設定
DBに絵文字をいれる
#カラムの文字コード変更 alter table table1 modify comment text character set utf8mb4 #テーブルの文字コード変更 alter table table1 default character set utf8mb4; #DBごと変更 alter database db1 default character set utf8mb4
mysql server停止
mysql.server stop
配列別の書き方
配列の普通じゃない書き方
array = %w(one two three four) p array # => ["one", "two", "three", "four"]
Gemfile
Gemfile
Bundlerの設定ファイル
→gemのバージョン管理を行う
bundle install
で,Gemfileに基づきgemがインストールされる
参考
Gemfileについて調べてみた - xxxcaqui.log
Bundlerを使ったGemパッケージの管理 - Ruby on Rails入門