Sha256: 5a387e0f7de37b9dc683541c5cb48e06b47c077632e3b0b241000d60239b7152

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :archer_history do |t|
      t.string :user
      t.text :commands
      t.timestamp :updated_at
    end

    add_index :archer_history, :user, unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archer-rails-0.2.0 lib/generators/archer/templates/migration.rb.tt
archer-rails-0.1.1 lib/generators/archer/templates/migration.rb.tt
archer-rails-0.1.0 lib/generators/archer/templates/migration.rb.tt