parent
fd4d2910d0
commit
90c63192e6
@ -1,3 +1,3 @@
|
||||
class AttachmentHistory < ActiveRecord::Base
|
||||
belongs_to :attachment,foreign_key: 'attach_id'
|
||||
belongs_to :attachment,foreign_key: 'attachment_id'
|
||||
end
|
||||
|
@ -0,0 +1,8 @@
|
||||
class RenameAttachmentHistoriesColumnVersionIdToAttachmentId < ActiveRecord::Migration
|
||||
def up
|
||||
rename_column :attachment_histories,:version_id,:attachment_id
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in new issue