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

19 lines
459 B
Ruby
Raw Normal View History

2018-12-11 19:15:40 -05:00
# 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,
2019-04-28 09:34:46 -04:00
null: false,
2018-12-11 19:15:40 -05:00
foreign_key: true
t.references :telegram_chat,
2019-04-28 09:34:46 -04:00
null: false,
index: { unique: true },
2018-12-11 19:15:40 -05:00
foreign_key: true
end
end
end