Class: CreateGroups

Inherits:
Object show all
Defined in:
lib/vapid/db/migrate/20170202182310_create_groups.rb

Overview

Create groups table

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :groups do |t|
    t.string :name
    t.string :fields, default: "{}"
    t.boolean :repeating, default: false

    t.timestamps
  end
end