blob: 2ddfa608152bfaf0e0b28490b3911fe4dbdadb39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class BackfillAccountMetadata < ActiveRecord::Migration[5.2]
def up
safety_assured do
execute("INSERT INTO account_metadata (account_id) SELECT id FROM accounts WHERE domain IS NULL OR domain = ''")
end
end
def down
true
end
end
|