mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
Rename user to username
git-svn-id: file:///home/svn/framework3/trunk@8838 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
efceaa84cf
commit
8e058e40cb
16
data/sql/migrate/015_rename_user.rb
Normal file
16
data/sql/migrate/015_rename_user.rb
Normal file
@ -0,0 +1,16 @@
|
||||
class RenameUser < ActiveRecord::Migration
|
||||
def self.up
|
||||
remove_column :events, :user
|
||||
change_table :events do |t|
|
||||
t.string :username
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :events, :username
|
||||
change_table :events do |t|
|
||||
t.string :user
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user