codevise / pageflow-linkmap-page

Hotspot page type
0 stars 7 forks source link

Migration not included? #2

Closed tilsammans closed 8 years ago

tilsammans commented 8 years ago

When I try this plugin I get this error:

ActionView::Template::Error: Mysql2::Error: Table 'storyboard_production.pageflow_sites' doesn't exist: SHOW FULL FIELDS FROM `pageflow_sites`

I can't find the migration quickly. Is it somewhere else?

tf commented 8 years ago

Hi Joost,

At the moment pageflow-linkmap-page has a hard dependency on pageflow-external-links to provide external link hotspots. There we have a migration for pageflow_external_links_sites. I'm a bit surprised it asks for pageflow_sites here. Is the external links gem installed? Can you provide a stack trace?

tilsammans commented 8 years ago

That's it then. I didn't have pageflow-external-links and as a result could not copy the migrations, because that gem wasn't activated. Added it and that seems to have done the trick.

I will send you the stack trace tonight.

tf commented 8 years ago

We should probably also add a note to the README saying that the gem needs to be installed since there are additional manual steps involved.

tilsammans commented 8 years ago

I'll submit a pull request for it.

Op 16 jun. 2016 om 17:55 heeft Tim Fischbach notifications@github.com het volgende geschreven:

We should probably also add a note to the README saying that the gem needs to be installed since there are additional manual steps involved.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tilsammans commented 8 years ago

Here is the backtrace as you can see, it has pageflow-linkmap-page-0.1.0 quite visibly in there.

tf commented 8 years ago

Looks like Rails tries different module name combinations to find an adequate table. When it does not find one, it only reports the last one it tried.