Sha256: 8e4222c1b281b9a2c77f9bf549227d97d854f905b9a96f46a939de195cb19d32

Contents?: true

Size: 506 Bytes

Versions: 94

Compression:

Stored size: 506 Bytes

Contents

class CreateVersions < ActiveRecord::Migration[4.2]
  def self.up
    create_table :versions do |t|
      t.string   :item_type, null: false, limit: 255
      t.integer  :item_id,   null: false
      t.string   :event,     null: false, limit: 255
      t.string   :whodunnit, limit: 255
      t.text     :object
      t.datetime :created_at
    end
    add_index :versions, [:item_type, :item_id]
  end

  def self.down
    remove_index :versions, [:item_type, :item_id]
    drop_table :versions
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/070_create_versions.rb
marty-14.0.0 db/migrate/070_create_versions.rb
marty-13.0.2 db/migrate/070_create_versions.rb
marty-11.0.0 db/migrate/070_create_versions.rb
marty-10.0.3 db/migrate/070_create_versions.rb
marty-10.0.2 db/migrate/070_create_versions.rb
marty-10.0.0 db/migrate/070_create_versions.rb
marty-9.5.1 db/migrate/070_create_versions.rb
marty-9.5.0 db/migrate/070_create_versions.rb
marty-9.3.3 db/migrate/070_create_versions.rb
marty-9.3.2 db/migrate/070_create_versions.rb
marty-9.3.0 db/migrate/070_create_versions.rb
marty-8.5.0 db/migrate/070_create_versions.rb
marty-8.4.1 db/migrate/070_create_versions.rb
marty-8.3.1 db/migrate/070_create_versions.rb
marty-8.2.0 db/migrate/070_create_versions.rb
marty-8.0.0 db/migrate/070_create_versions.rb
marty-6.1.0 db/migrate/070_create_versions.rb
marty-5.2.0 db/migrate/070_create_versions.rb
marty-5.1.4 db/migrate/070_create_versions.rb