0
C:\Users\MEGHA\bbbb>rake db:migrate
rake aborted!
SyntaxError: C:/Users/MEGHA/bbbb/db/migrate/20140402130040_create_comments.rb:4: syntax error, unexpected tIDENTIFIER, expecting keyword_end
C:65535:in `disable_ddl_transaction'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20140402130040_create_comments.rb耙無法遷移
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.string :post_id=integer
t.text :body
t.timestamps
end
end
end
的[NOT能夠耙分貝可能重複:遷移(http://stackoverflow.com/questions/22806780/not-able-to-rake-dbmigrate)。提問者,我已經投票決定將此問題作爲您接受答案的副本的複本。將來,請避免多次發佈相同的問題。 –