1
0
postdoc/db/migrate/20201130185142_create_mailboxes.rb

13 lines
339 B
Ruby
Raw Permalink Normal View History

2020-12-06 20:49:03 +01:00
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