티스토리 뷰
반응형
Rails 3.2.12 버전
- db:create creates the database for the current env
- db:create:all creates the databases for all envs
- db:drop drops the database for the current env
- db:drop:all drops the databases for all envs
- db:migrate runs migrations for the current env that have not run yet
- db:migrate:up runs one specific migration
- db:migrate:down rolls back one specific migration
- db:migrate:status shows current migration status
- db:rollback rolls back the last migration
- db:forward advances the current schema version to the next one
- db:seed (only) runs the db/seed.rb file
- db:schema:load loads the schema into the current env's database
db:schema:dump dumps the current env's schema (and seems to create the db as well)
db:setup runs db:schema:load, db:seed
- db:reset runs db:drop db:setup
- db:migrate:redo runs (db:migrate:down db:migrate:up) or (db:rollback db:migrate:migrate) depending on the specified migration
- db:migrate:reset runs db:drop db:create db:migrate
Rails 4.x 버전
반응형
'Ruby&Rails > Rails' 카테고리의 다른 글
| [Rails] CRUD의 Create & Update & Delete 문법 (0) | 2015.06.24 |
|---|---|
| [Rails] 외부 fonts 경로 및 사용법 (0) | 2015.01.28 |
| [Rails] 이전 url로 redirect 하기 (1) | 2014.08.21 |
| [Rails] 파일/이미지 업로드 paperclip (0) | 2014.08.18 |
| Ubuntu 에서 Ruby & Rails 설치하기 (0) | 2014.07.10 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- codecademy
- 삼성전자
- Rails
- 한화에어로스페이스
- CSS
- 주식투자
- 현대차
- ubuntu
- 반도체관련주
- javascript
- SK하이닉스
- ruby
- rabbitmq
- HBM
- 티스토리 초대장
- Java
- ruby on rails
- Message Queue
- 이수페타시스
- 자료구조
- 프로그래밍
- html
- install
- 국제유가
- 알고리즘
- 이펙티브 자바
- 투자전략
- 웹프로그래밍
- 한미반도체
- OpenStack
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
글 보관함
Copyright ⓒ 2018 moneystory.blog. All rights reserved.
