I have created a couple of models, edited the migration files and run
rake db:migrate and voila, the new table is created.
Now I come to create a 3rd model, edit the migration file:
class CreateResumes < ActiveRecord::Migration
create_table :resumes do |t|
# t.column :name, :string
t.column :institution, :string
t.column :user_id, :integer
and run rake db:migrate and it doesn’t fail it just does nothing, it
creates no new table.
C:\work\1hh-b>rake db:migrate -t
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
Other rake commands work fine such as rake annotate_models.
This isn’t the first time this has happened. It usually happens after
I have done a few migrations. Because I am a noob and building simple
test apps I just start a new project, copying over what I have done to
date and rake db:migrate works fine. But it isn’t a satisfactory
Any suggestions would be great.