| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | # frozen_string_literal: true |
||
| 4 | class CreateJournals < ActiveRecord::Migration[5.1] |
||
| 5 | def change |
||
| 6 | create_table :journals, comment: 'Journals table' do |t| |
||
| 7 | t.string :name, null: false, unique: true, index: true |
||
| 8 | t.references :participant, null: false, foreign_key: true, index: true |
||
| 9 | t.timestamps null: false, default: -> { 'CURRENT_TIMESTAMP' } |
||
| 10 | end |
||
| 11 | end |
||
| 12 | end |
||
| 13 |