Перенос базы данных в рельсы, но таблицы не найдены? - PullRequest
0 голосов
/ 13 января 2012

Я пытаюсь перенести свою базу данных в рельсы, но таблицы не найдены. Использование только среды разработки и шаги, которые я предпринимаю, проходят через учебные пособия по Lynda rails 2010. Любая помощь приветствуется. Информация ниже

NOC-4:app noc$ rake db:migrate
(in /Users/noc/rails_projects/app)
==  CreateUsers: migrating ====================================================
-- create_table(:users)
   -> 0.0566s
==  CreateUsers: migrated (0.0567s) ===========================================

NOC-4:app noc$ mysql -u simple_cms -p simple_cms_development
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.5.20 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW TABLES
    -> 

Ниже мой database.yml

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
development:
  adapter: mysql
  database: simple_cms_development
  username: simple_cms
  password: secretpassword
  pool: 5
  timeout: 5000

# Warning: The database defined as "test" will be eased and
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: simple_cms_test
  username: simple_cms
  password: 
  pool: 5
  timeout: 5000

production:
  adapter: mysql
  database: simple_cms_development
  username: simple_cms
  password: 
  pool: 5
  timeout: 5000

также является моей необходимой информацией из моего Gemfile

source 'http://rubygems.org'

gem 'rails', '3.1.3'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'ruby-mysql'
gem 'activerecord'
gem 'mysql'
gem 'rake', '~> 0.8.7'

gem 'therubyracer', :require => 'v8'

1 Ответ

1 голос
/ 13 января 2012

Где твоя точка с запятой, чувак?

mysql> show tables;
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...