Sha256: 1336e3168a1b52dd31aa577e9a530c4dceec327e5914724d3fffea13a54e811e

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

class CreateUnidomScoreItemTemplates < ActiveRecord::Migration

  def change

    create_table :unidom_score_item_templates, id: :uuid do |t|

      t.references :sheet, type: :uuid, null: false

      t.string  :title, null: false, default: '',  limit:     200
      t.decimal :score, null: false, default: 0.0, precision: 12, scale: 2

      t.text :description
      t.text :instruction

      t.column   :state, 'char(1)', null: false, default: 'C'
      t.datetime :opened_at,        null: false, default: Unidom::Common::OPENED_AT
      t.datetime :closed_at,        null: false, default: Unidom::Common::CLOSED_AT
      t.boolean  :defunct,          null: false, default: false
      t.jsonb    :notation,         null: false, default: {}

      t.timestamps null: false

    end

    add_index :unidom_score_item_templates, :sheet_id

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unidom-score-2.0 db/migrate/20060102000000_create_unidom_score_item_templates.rb
unidom-score-1.1.8 db/migrate/20060102000000_create_unidom_score_item_templates.rb