Sha256: 71c8dfea58f00635866a4c0cedde9832f940480862c5376cb074a56097170e2b

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

class CreateHandlerResources < ActiveRecord::Migration
  def change
    create_table :handler_resources do |t|
      t.boolean :r_boolean
      t.date :r_date
      t.datetime :r_datetime
      t.decimal :r_decimal
      t.float :r_float
      t.integer :r_integer
      t.string :r_string
      t.text :r_text
      t.time :r_time

      t.integer :accept_count, null: false, default: 0
      t.integer :decline_count, null: false, default: 0
      t.integer :accepted_revisions_count, null: false, default: 0
      t.integer :declined_revisions_count, null: false, default: 0

      t.boolean :accepted, null: false, default: false
      t.boolean :declined, null: false, default: false

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
controlled_versioning-0.10.0 spec/dummy/db/migrate/20140118222842_create_handler_resources.rb