Passed
Push — master ( 6bc43d...2da2ee )
by Ahmad
07:04
created

CreateSharedAccesses.change()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 8
rs 10
c 1
b 0
f 0
1
# frozen_string_literal: true
2
3
class CreateSharedAccesses < ActiveRecord::Migration[5.2]
4
  def change
5
    create_table :shared_accesses do |t|
6
      t.belongs_to :room, foreign_key: true
7
      t.references :user, foreign_key: true
8
9
      t.timestamps
10
    end
11
  end
12
end
13