0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails-備忘録

Posted at

環境構築

・Gemのインストール
bundle install
・NODEパッケージのインストール
npm install --no-bin-links ※Macでは--no-bin-linksオプションは不要
 package.jsonを読み込んでいる?
・DBの作成
bundle exec rake db:create
・マイグレーションの実行
bundle exec rake db:migrate
 db/migrateを読み込んでいる
・Seederの実行
bundle exec rake db:seed
 db/seedsを読み込んでいる
・Assetのpreコンパイル
bundle exec rake assets:precompile
 Assetの中身をコンパイルしている。Asset内を変更したらこれを実行

まず最初にすること

データベース作成
1.テーブルの作成
  rails g model テーブル名 カラム名:データ型

rails g model m_exclusion_domain enterprise_code:string exclusion_domain
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?