Sha256: a083e2c7918dc380bc2f5e4f00fab462509be031a9bcd35188b7c7ad97604eba

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

class CreateFields < ActiveRecord::Migration
  def change
    create_table :fields do |t|
      t.string :name
      t.string :description
      t.string :field_type
      t.references :prototype, index: true, foreign_key: true
      t.json :options
      t.boolean :required, :default => false

      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacksand-2.3.0 db/migrate/20151112055438_create_fields.rb
blacksand-2.2.2.1 db/migrate/20151112055438_create_fields.rb