「Tep3-onk」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
12行目: | 12行目: | ||
% rails generate scaffold Other user:references note:references client:references name:string yomi:string client_name:boolean line:integer memo:text generation:string | % rails generate scaffold Other user:references note:references client:references name:string yomi:string client_name:boolean line:integer memo:text generation:string | ||
− | |||
− | |||
$ rails generate scaffold Post content:text user:references picture:string | $ rails generate scaffold Post content:text user:references picture:string | ||
41行目: | 39行目: | ||
$ rails db:migrate:up VERSION=20200504051127 | $ rails db:migrate:up VERSION=20200504051127 | ||
− | |||
− | |||
== postgres == | == postgres == | ||
155行目: | 151行目: | ||
== 親テーブルie_id 子テーブルie_id 差分削除 == | == 親テーブルie_id 子テーブルie_id 差分削除 == | ||
% diff aa_clients_id_ie_id.csv bb_clients_old_ie_id.csv > diff.csv | % diff aa_clients_id_ie_id.csv bb_clients_old_ie_id.csv > diff.csv | ||
+ | |||
+ | [[#See also]]Í | ||
=== insert === | === insert === | ||
227行目: | 225行目: | ||
=# update clients_old set nusi = false where id = 3703;</nowiki> | =# update clients_old set nusi = false where id = 3703;</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== 指定行を作る === | === 指定行を作る === | ||
278行目: | 243行目: | ||
; | ; | ||
UPDATE 3066</nowiki> | UPDATE 3066</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== ローカル == | == ローカル == | ||
411行目: | 368行目: | ||
== 同期 == | == 同期 == | ||
− | + | % rsync -r ~/rails_app_tepnote/4tep/ host:/home/tep/ | |
除外するファイルをまとめる | 除外するファイルをまとめる | ||
<nowiki>exclude-file.txt | <nowiki>exclude-file.txt | ||
422行目: | 379行目: | ||
$ bundle install --without test development | $ bundle install --without test development | ||
− | + | database.yml username:などを確認する (2箇所) | |
− | |||
− | |||
− | |||
− | |||
$ rails db:create RAILS_ENV=production | $ rails db:create RAILS_ENV=production | ||
または | または | ||
$ rails db:reset RAILS_ENV=production | $ rails db:reset RAILS_ENV=production | ||
− | |||
− | |||
− | |||
− | |||
エラーのとき | エラーのとき | ||
633行目: | 582行目: | ||
5158, | 5158, | ||
6053) | 6053) | ||
− | + | </nowiki> |