Sha256: 7b34a801427a5729fcf87b6015e50db1a2e0beed2d039f91a0cec9ed843b7e0b

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

class CreateVimoFields < ActiveRecord::Migration[5.0]
  def change
    create_table :vimo_fields do |t|
      t.string :name
      t.string :system_name
      t.integer :kind
      t.boolean :required
      t.references :entity, foreign_key: true

      t.timestamps
    end

    add_index :vimo_fields, [:entity_id, :system_name],
      unique: true, name: :field_unique_system_name
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vimo-0.1.3 db/migrate/20180208182202_create_vimo_fields.rb
vimo-0.1.1 db/migrate/20180208182202_create_vimo_fields.rb
vimo-0.1.0 db/migrate/20180208182202_create_vimo_fields.rb