Handle rails 3+ table definitions;
Fix plugin install