Skip to content

New Project broken migration because of routes loading #10

@peakpg

Description

@peakpg

Imported from lighthouse. Original ticket at: http://browsermedia.lighthouseapp.com/projects/28481/tickets/376. Created by Pete P. - 2010-12-26 23:15:07 UTC

Pardon, I'm a bit new to gem stuff...

I cloned gem and switched to r3 branch.

Created my database.yml for mysql and ran rake db:create, and rake db:migrate

Migrations failed because: "Table 'browsercms_development.file_blocks' doesn't exist"

I traced this from the loading of "routes_for_browser_cms" through to the routes for file_blocks which tries to constantize the model. It fails during constantizing of the model when it acts_as_content_block and tries to add in soft delete functionality.

File: soft_deleting.rb
Line: 26
"default_scope where(:deleted => false)"

This tries to get the column hash for the table which obviously hasn't been created cuz where migrating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions