Comments (12)
Test Environment: Ubuntu 10.04.1
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
from refinerycms-blog.
If you generated blog before upgrading to 0997 this would be due to mis-ordered migration files. I'm actually dealing with this /right now/ on a client project. Will post findings asap
from refinerycms-blog.
I re-named my migration file timestamps so that this migration from the 0997 upgrade:
ordered itself before my engine migration files.
Then, in development I was able to just rake db:drop, create & setup.
But on production, I ran this in console to fix "schema_migrations" without dropping the db:
ActiveRecord::Base.connection.execute("TRUNCATE TABLE schema_migrations")
Dir.open('db/migrate').each { |fname| i = fname.split('_').first.to_i; next if i == 0; ActiveRecord::Base.connection.execute("INSERT INTO schema_migrations (version) VALUES(#{i})") };nil
from refinerycms-blog.
Actually, I encountered this issue in a fresh install, tested with RefineryCMS 0.9.9.8, and here is my test steps:
1. refinerycms refinerycms998 -d mysql -u root -p root
2. uncomment the "# gem 'refinerycms-blog', '~> 1.1'" in Gemfile
3. rails g refinerycms_blog
4. rake db:migrate RAILS_ENV=production
the development environment is okay
from refinerycms-blog.
I just did this:
- $ gem update refinerycms
- $ refinerycms testtime
- $ cd testtime
- --- Edit gemfile (uncomment blog) ---
- $ bundle install
- $ rails g refinerycms_blog
- $ rake db:migrate
It worked fine, no error. I was also on:
ruby 1.9.2dev (2010-06-18 revision 28360) [x86_64-darwin10.4.0]
from refinerycms-blog.
yes, "rake db:migrate" in development environment is okay, but error with production, you can try the following command to reproduce:
rake db:migrate RAILS_ENV=production
from refinerycms-blog.
I cannot reproduce this error. Check that the blog migration happens after the 'translate custom title' one.
from refinerycms-blog.
seems this have been fixed in RefineryCMS 9.9.12, so close this issue
from refinerycms-blog.
I am experiencing this in production (not development) on 9.9.20
from refinerycms-blog.
As far as i know, it may be an issue of the refinery, not this plugin, anyway, i will try it on 9.9.20
from refinerycms-blog.
Yes, I think you are right. When I stop the seeds file from running in the migrations and then run the seeds files manually have all migrations have been run it works fine.
from refinerycms-blog.
Add this to the top of your blog seeds:
Page.reset_column_information
from refinerycms-blog.
Related Issues (20)
- Error when trying to upgrade HOT 1
- Friendly urls are not generated on save HOT 8
- 'refinery_settings' already exists HOT 2
- Compatibility with Rails 5.2 HOT 4
- Updating to jquery-ui v6 HOT 1
- Upgrading to version 4 resulted in list of authors to no longer be available from the Posts form
- Log production HOT 5
- Installation breaks base install of refinerycms HOT 8
- Bundle take too loog time to work. HOT 4
- refinerycms-wymeditor not work HOT 2
- Don't release the version >= 4.0.0
- Fix N + 1 for Refinery::Blog::Post.live HOT 5
- [Bug: feature/refinery-5] Can no visit the posts management page
- Travis CI fails with job exceeded max time limit HOT 1
- query-ui/widgets/autocomplete not found HOT 3
- Disable RSS Feed HOT 2
- Failing to install HOT 3
- uninitialized constant Refinery::Application (NameError)
- Dependabot can't resolve your Ruby dependency files
- is this gem still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refinerycms-blog.