运行迁移文件时:
def self.up
create_table (:project_paths,:id=>false) do |t|
t.integer :project_id
t.integer :path_id
end
end
我收到了这个错误:
语法错误,意外 ',',期待 ')' create_table (:project_paths,:id=>false) do |t|
运行迁移文件时:
def self.up
create_table (:project_paths,:id=>false) do |t|
t.integer :project_id
t.integer :path_id
end
end
我收到了这个错误:
语法错误,意外 ',',期待 ')' create_table (:project_paths,:id=>false) do |t|