botvector.net domain for sale $5k usd (negotiable). Em@il me t0: alex at israstage dot com

My Git activity

06 November 2008

Enhanced Migrations Plugin + Rails 2.1+

Hi,
In 2.1+ there are new migration style - it uses time stamp to create migration filename , just like Enhanced Migrations Plugin did.

Recently i updated my application to 2.1.2 (from 2.0.2) and found incompatibility with this plugin.

So we need to update our database!
We need take all Enhanced Migrations Plugin "migrations_info" and simply put them on schema_migration table !

First, backup your database.

Next:


DROP TABLE IF EXISTS schema_migrations;
CREATE TABLE schema_migrations (
version varchar(255) NOT NULL,
UNIQUE KEY unique_schema_migrations (version)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO schema_migrations (SELECT ID FROM migrations_info);
DROP TABLE migrations_info;


Now remove Enhanced Migrations Plugin from vendor/plugins,

And you're ready !

1 comment:

Anonymous said...

Six months after the Supreme Court reversal, Pennsylvania took its first authorized sports activities bet at a on line casino sportsbook in 2018. Additional licenses have since been handed out and mobile/online wagering can also be|can be} 카지노 사이트 accepted in-state. In December 2021, sports activities betting turned authorized in Ohio after Gov. Mike DeWine signed it into law. However, it's anticipated that Ohio residents will not ready to|be capable of|have the ability to} place any wagers till Jan. 1, 2023 on the earliest.