Sha256: b38eb8cc6511b0781eaa6c0d701ce527bf421835afe3f4c70f499e58d1bd65bc

Contents?: true

Size: 352 Bytes

Versions: 4

Compression:

Stored size: 352 Bytes

Contents

class CreateHistoriesTable < ActiveRecord::Migration
  def self.up
    create_table :histories do |t|
      t.string :message # title, name, or object_id
      t.string :username
      t.integer :item
      t.string :table
      t.timestamps
    end
    add_index(:histories, [:item, :table])
  end

  def self.down
    drop_table :histories
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.4 spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb
rails_admin-0.6.3 spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb
rails_admin-0.6.2 spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb
rails_admin-0.6.1 spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb