9 lines
155 B
Ruby
9 lines
155 B
Ruby
|
class PopulateUsersType < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
Principal.update_all("type = 'User'", "type IS NULL")
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
end
|
||
|
end
|