SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 253 forks source link

Fixes assets:precompile error #82

Closed kryachkov closed 11 years ago

kryachkov commented 11 years ago

This pull request fixes #78 error in assets:precompile if migration is pending

kovalevsky commented 11 years ago

Great work. I hate this bug. Every time I deploys a new application I'm faced with this problem @SammyLin accept request please

SammyLin commented 11 years ago

thanks @kryachkov pull request

SammyLin commented 11 years ago

redactor-rails gem updated to 0.3.6 0df53ea5a9a09a0f608c2890f1e55d4c65d2f3b1

asvechkar commented 11 years ago

and what? RAILS_ENV=production rvm use 2.0.0 do bundle exec rake db:migrate rake aborted! PG::UndefinedTable: ERROR: relation "redactor_assets" does not exist LINE 5: WHERE a.attrelid = '"redactor_assets"'::regcl... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"redactor_assets"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum

asvechkar commented 11 years ago

Using redactor-rails (0.4)

kryachkov commented 11 years ago

@asvechkar use version 0.3.6

asvechkar commented 11 years ago

Да понятно, я уже прописал конкретную версию. Просто странно у него: сначала идет 0.4, а теперь надо на 0.3.6 переходить.

kryachkov commented 11 years ago

Looks like the mistake in version sequence