Project

General

Profile

Redmine plugins migration files

Added by arsim demiri over 8 years ago

Hello
I have a problem with migration files in plugins. I made a migration with "up" and "down"

class AddLocationToRoom < ActiveRecord::Migration

    def change
        add_column :rooms, :location, :string
    end
    def down
        remove_column :rooms, :location
    end
end

Is there any way that i can migrate only this file because the command "rake redmine:plugins:migrate" migrate all files, i want to set in VERSION=0 Only this migration file "AddLocationToRoom".
THe command "rake redmine:plugins:migrate NAME="plugin_name" VERSION=0" set to version 0 all migration files.

Thanku