Working with:
- Ruby 1.9.3
- Rails 4
- MySQL 5.6
Whenever I run "rake db:migrate" no tables are created in the database.
I have created a database and named it "simple_cms_development" and changed the development part of "database.yml" accordingly:
development:
adapter: sqlite3
database: simple_cms_development
pool: 5
username: simple_cms
password: ruby
timeout: 5000
I generated and model named "User" and edited "create_users.rb" to:
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string "first_name", :limit => 25
t.string "last_name", :limit => 50
t.string "email", :default => "", :null => false
t.string "password", :limit => 40
t.timestamps
end
end
end
I run "rake db:migrate" and there is no change to the tables within the database. When I run SHOW TABLES;
in MySQL I get back "Empty set (0.00sec)". I don't even get "schema_migrations" table.
Any ideas what is going on?
Thanks!