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
2018-12-12 05:35:40 +05:00

18 lines
479 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