1
0
postdoc/db/migrate/20201130185142_create_mailboxes.rb
2020-12-06 21:05:11 +01:00

13 lines
339 B
Ruby

class CreateMailboxes < ActiveRecord::Migration[6.0]
def change
create_table :mailboxes do |t|
t.string :name, null: false
t.string :sendgrid_mock_api_token, null: false
t.string :sendgrid_api_token, null: false
t.timestamps
end
add_index :mailboxes, :sendgrid_mock_api_token, unique: true
end
end