Sha256: ddc00099b60fe4600e0014b3a1b32261f49c78027655cdf91fe346faf2c321bc

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

class CreateLogBookEvents < ActiveRecord::Migration
  def self.up
    create_table :log_book_events do |t|
      t.integer :historian_id
      t.string :historian_type
      t.integer :historizable_id
      t.string :historizable_type
      t.string :text, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :log_books
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
log_book-0.0.1 lib/generators/log_book/templates/create_log_book_events.rb