Open abatista75 opened 9 years ago
Change the content of db/migrate/001_create_release-notes.rb into
class CreateReleaseNotes < ActiveRecord::Migration
def up
create_table :release_notes, :primary_key => :id do |t|
t.column :issue_id, :integer
t.column :text, :string
end
end
def down
drop_table :release_notes
end
end
rake aborted! StandardError: An error has occurred, all later migrations canceled:
you can't redefine the primary key column 'id'. To define a custom primary key, pass { id: false } to redmine/plugins/redmine_release_notes/db/migrate/001_create_release_notes.rb:20:in block in up' redmine/plugins/redmine_release_notes/db/migrate/001_create_release_notes.rb:19:in
up'
class CreateReleaseNotes < ActiveRecord::Migration
def up
create_table :release_notes do |t|
#t.column :id, :integer
t.column :issue_id, :integer
t.column :text, :string
end
end
def down
drop_table :release_notes
end
end
With a fresh Redmine 3.0.1 install, the plugin does not work when installing the plugin ("can't redefine the primary key column Id")