diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake new file mode 100644 index 0000000..76baa0a --- /dev/null +++ b/lib/tasks/db.rake @@ -0,0 +1,7 @@ +namespace :db do + desc 'Create schema migrations on local database' + task :generate_migrations => :environment do + ActiveRecord::Base.establish_connection(Baas::settings[:local_db]). + connection.execute("CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL, UNIQUE KEY `unique_schema_migrations` (`version`));") + end +end