我在数据迁移建表时出错:
Mysql::Error:Can't create table'.store_development\goals.frm'error:121CREATE TABLE 'goals'<'id' int DEFAULT NULL auto_increment PRIMARY KEY, 'title' varchar DEFAULT NULL, 'description' text DEFAULT NULL > ENGINE=InnoDB
我数据迁移的代码是:
[code="ruby"]class CreateGoals < ActiveRecord::Migration
def self.up
create_table :goals do |t|
t.column :title, :string
t.column :description, :text
end
end
def self.down
drop_table :goals
end
end[/code]
google了好久都不知是哪里出错,望指教!谢谢!
[b]问题补充:[/b]
重启电脑还是不行,我查了语法没错,配置没错,都不知错在哪里了。