Class: CreateRecords

Inherits:
Object show all
Defined in:
lib/vapid/db/migrate/20170202183017_create_records.rb

Overview

Create records table

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
# File 'lib/vapid/db/migrate/20170202183017_create_records.rb', line 3

def change
  create_table :records do |t|
    t.string :content, default: "{}"
    t.references :group, foreign_key: true

    t.timestamps
  end
end