Sha256: 444258eefa920ef620c106a2fa2b6acd6b63b1fb709a0ff36b39ea98911ec667

Contents?: true

Size: 995 Bytes

Versions: 1

Compression:

Stored size: 995 Bytes

Contents

# This migration comes from rubber_stamp (originally 20140206165158)
class CreateRubberStampVersions < ActiveRecord::Migration
  def change
    create_table :rubber_stamp_versions do |t|
      t.string   :versionable_type, null: false
      t.integer  :versionable_id,   null: false

      t.integer  :user_id

      t.text     :notes

      t.boolean  :initial, null: false, default: false

      t.boolean  :marked_for_removal, null: false, default: false

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

      t.datetime :created_at
    end
    add_index :rubber_stamp_versions, :initial
    add_index :rubber_stamp_versions, :accepted
    add_index :rubber_stamp_versions, :declined
    add_index :rubber_stamp_versions, :pending
    add_index :rubber_stamp_versions,
      [:versionable_type, :versionable_id],
      name: "rubber_stamp_versions_on_versionable"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubber_stamp-0.13.0 db/migrate/20140206204853_create_rubber_stamp_versions.rb