1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/db/migrate/20181212000903_create_account_telegram_contacts.rb
2019-04-28 18:34:46 +05:00

18 lines
459 B
Ruby

# frozen_string_literal: true
class CreateAccountTelegramContacts < ActiveRecord::Migration[5.2]
def change
create_table :account_telegram_contacts do |t|
t.timestamps null: false
t.references :account,
null: false,
foreign_key: true
t.references :telegram_chat,
null: false,
index: { unique: true },
foreign_key: true
end
end
end