-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Gem::Package::TooLongFileName error.
- Move blocks migrations to dummy app to fix Gem::Package::TooLongFileName error on gem building. - Fix DestroyNoCmsPagesBlocks migration. - Update readme.
- Loading branch information
Luis Mendo
committed
Sep 11, 2015
1 parent
2442bd0
commit 271ea37
Showing
8 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
class DestroyNoCmsPagesBlocks < ActiveRecord::Migration | ||
def change | ||
|
||
if !defined?(NoCms::Blocks::Block) || !NoCms::Blocks::Block.table_exists? | ||
raise Exception.new("Migration destroying no_cms_pages_blocks should only be run after creating NoCms::Blocks::Block table") | ||
if NoCms::Blocks::Block.table_exists? | ||
begin | ||
Rake::Task["no_cms:pages:migrate_blocks"].invoke | ||
rescue | ||
Rake::Task["app:no_cms:pages:migrate_blocks"].invoke | ||
end | ||
end | ||
|
||
begin | ||
Rake::Task["no_cms:pages:migrate_blocks"].invoke | ||
rescue | ||
Rake::Task["app:no_cms:pages:migrate_blocks"].invoke | ||
end | ||
drop_table :no_cms_pages_blocks | ||
|
||
end | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters