Sha256: d7a1e1af09b19201068635b9a0b19a0f78136a5f20a7971415b9dd088a1c0000

Contents?: true

Size: 912 Bytes

Versions: 4

Compression:

Stored size: 912 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 :create_count, null: false, default: 0
      t.integer :accept_count, null: false, default: 0
      t.integer :decline_count, null: false, default: 0

      t.integer :created_revisions_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 :has_been_created, null: false, default: false
      t.boolean :accepted, null: false, default: false
      t.boolean :declined, null: false, default: false

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rubber_stamp-0.15.1 spec/dummy/db/migrate/20140118222843_create_handler_resources.rb
rubber_stamp-0.13.0 spec/dummy/db/migrate/20140118222842_create_handler_resources.rb
controlled_versioning-0.12.0 spec/dummy/db/migrate/20140118222842_create_handler_resources.rb
controlled_versioning-0.11.0 spec/dummy/db/migrate/20140118222842_create_handler_resources.rb