Class: CreateGroups
- Defined in:
- lib/vapid/db/migrate/20170202182310_create_groups.rb
Overview
Create groups table
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end end |