Project

General

Profile

Actions

Patch #11615

closed

Database setup and reset

Added by Alexander Markelov over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

According to the RailsGuides: There is no need (and it is error prone) to deploy a new instance of an app by replaying the entire migration history. It is much simpler and faster to just load into the database a description of the current schema.

The patch includes the latest database schema in schema.rb and the required initial data in seeds.rb. These files allow to setup (and reset) database without running through the whole set of migrations using rake db:migrate command. Use the built-in rake db:setup and rake db:reset instead.

Note: the patch also changes svn:ignore property on db directory.


Files

db_schema_and_seeds.diff (30 KB) db_schema_and_seeds.diff Alexander Markelov, 2012-08-09 21:58
Actions

Also available in: Atom PDF