Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

执行rails g homeland:install出错 #13

Open
zhdwwf opened this issue Mar 29, 2016 · 2 comments
Open

执行rails g homeland:install出错 #13

zhdwwf opened this issue Mar 29, 2016 · 2 comments

Comments

@zhdwwf
Copy link

zhdwwf commented Mar 29, 2016

执行rails g homeland:install,提示

Error: Command 'homeland:install:migrations' not recognized

查看源码发现homeland用的是

rails homeland:install:migrations

改用

rake homeland:install:migrations

后成功

@huacnlee
Copy link
Member

哦,这个细节是貌似是 Rails 4 和 Rails 5 的差别

@zhdwwf
Copy link
Author

zhdwwf commented Mar 29, 2016

哦,我用的是4.2.2,这样的话install的时候是否能判断一下Rails版本然后使用不同的命令,好避免4.x版本下出错

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants