Created
September 27, 2012 12:24
-
-
Save tisba/3793721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3-p194 migration-test ➜ rake db:setup --trace | |
** Invoke db:setup (first_time) | |
** Invoke db:schema:load_if_ruby (first_time) | |
** Invoke db:create (first_time) | |
** Invoke db:load_config (first_time) | |
** Execute db:load_config | |
** Invoke rails_env (first_time) | |
** Execute rails_env | |
** Execute db:create | |
db/development.sqlite3 already exists | |
db/test.sqlite3 already exists | |
** Execute db:schema:load_if_ruby | |
** Invoke db:schema:load (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke db:load_config | |
** Execute db:schema:load | |
-- initialize_schema_migrations_table() | |
-> 0.0125s | |
-- assume_migrated_upto_version(0, ["/Users/basti/Documents/src/sandbox/migration-test/db/migrate"]) | |
-> 0.0015s | |
** Invoke db:structure:load_if_sql (first_time) | |
** Invoke db:create | |
** Execute db:structure:load_if_sql | |
** Invoke db:seed (first_time) | |
** Execute db:seed | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment | |
** Invoke db:load_config | |
** Execute db:abort_if_pending_migrations | |
You have 1 pending migrations: | |
20120927115115 CreateProducts | |
Run `rake db:migrate` to update your database then try again. | |
1.9.3-p194 migration-test ➜ rake db:migrate:status | |
database: db/development.sqlite3 | |
Status Migration ID Migration Name | |
-------------------------------------------------- | |
up 0 ********** NO FILE ********** | |
down 20120927115115 Create products | |
1.9.3-p194 migration-test ➜ sqlite3 db/development.sqlite3 | |
SQLite version 3.7.13 2012-06-11 02:05:22 | |
Enter ".help" for instructions | |
Enter SQL statements terminated with a ";" | |
sqlite> select * from schema_migrations; | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment