Class: CreateExportTemplates

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/basepack/templates/migrations/create_export_templates.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/basepack/templates/migrations/create_export_templates.rb', line 2

def change
  create_table :export_templates do |t|
    t.string :name
    t.belongs_to :user, index: true
    t.string :class_type
    t.text :schema_template
    t.boolean :active, null: false, default: false
    t.integer :position

    t.timestamps
  end
end