Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jumpstart rails 5 issue #13

Open
jembuilt opened this issue May 6, 2019 · 8 comments
Open

Jumpstart rails 5 issue #13

jembuilt opened this issue May 6, 2019 · 8 comments

Comments

@jembuilt
Copy link

jembuilt commented May 6, 2019

Hi Chris was just trying to have a play with this using jumpstart< downloaded from repo today, rails 5.2 & ruby 2.6

rails simple_discussion:install:migrations rails aborted! Don't know how to build task 'simple_discussion:install:migrations' (See the list of available tasks with rake --tasks)

any ideas?

@excid3
Copy link
Owner

excid3 commented May 6, 2019

Works just fine for me on Rails 5.2 and 6.0. Make sure you ran bundle after adding it to your Gemfile I guess.

rails _5.2.3_ new discussion_test
cd discussion_test
# edit Gemfile, add: gem 'simple_discussion'
bundle
rails simple_discussion:install:migrations

@excid3
Copy link
Owner

excid3 commented May 6, 2019

Jumpstart doesn't come with simple_discussion btw, in case that was the point of confusion. My guess is just a missing bundle install still.

@dazzaroonie
Copy link

dazzaroonie commented Sep 27, 2019

Hi Chris

I've just tried to add it to jumpstart and whilst I did the bundle etc ... I'm getting the following:

== 20190927051538 CreateForumCategories: migrating ============================
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

=== Dangerous operation detected #strong_migrations ===

The force option will destroy existing tables.
If this is intended, drop the existing table first.
Otherwise, remove the force option.

/Users/dazzaroonie/Sites/newmaffsguru/db/migrate/20190927051538_create_forum_categories.simple_discussion.rb:4:in `change'
/Users/dazzaroonie/Sites/newmaffsguru/bin/rails:9:in `<top (required)>'
/Users/dazzaroonie/Sites/newmaffsguru/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

The table doesn't already exist. So, why is the migration asking me to delete the table?

@excid3
Copy link
Owner

excid3 commented Sep 27, 2019

@dazzaroonie it was set to force: :cascade which I'm not sure when that was added or why, so I just removed it. Try using it from master and I'll make another release if that works.

@dazzaroonie
Copy link

@excid3 OK. I deleted it and it worked anyways.
One last question ... do you think you might be able to have a bootstrap and tailwind version? I'm trying to use it on a jumpstart template site and it doesn't look pretty. Adding Bootstrap breaks the tailwind.
I know it's more work for you (and you've done a lot already!) but thought I'd ask

@excid3
Copy link
Owner

excid3 commented Sep 28, 2019

Maybe, it's really hard to maintain different templates. I feel like that may be too much to do right now.

@raviy06
Copy link

raviy06 commented Oct 15, 2020

I just created a fork for this, and I am probably going to replace the hardcoded 'User' model with one of mine and replace bootstrap with tailwind for one of my product. I may or may not introduce support for multiple models depending upon my timelines. So if you want I can probably create a pr once I'm done with changes. Also, if you have any specifications regarding the design, like what you have on GoRails, we can always get in touch and discuss.

@excid3
Copy link
Owner

excid3 commented Oct 15, 2020

Open to PRs for those features @raviy06 👍

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

No branches or pull requests

4 participants