Sha256: cf2fa12c2fc55aeb1db2f34a3dd61d2c2fa97cb05c8e1f3c32abbca58280e186

Contents?: true

Size: 1.05 KB

Versions: 8

Compression:

Stored size: 1.05 KB

Contents

# This migration comes from controlled_versioning (originally 20140206165158)
class CreateControlledVersioningVersions < ActiveRecord::Migration
  def change
    create_table :controlled_versioning_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 :controlled_versioning_versions, :initial
    add_index :controlled_versioning_versions, :accepted
    add_index :controlled_versioning_versions, :declined
    add_index :controlled_versioning_versions, :pending
    add_index :controlled_versioning_versions,
      [:versionable_type, :versionable_id],
      name: "controlled_versioning_versions_on_versionable"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
controlled_versioning-0.12.0 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.11.0 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.10.0 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.9.2 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.9.1 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.9.0 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.8.0 db/migrate/20140206204853_create_controlled_versioning_versions.rb
controlled_versioning-0.7.2 spec/dummy/db/migrate/20140206173607_create_controlled_versioning_versions.controlled_versioning.rb