Sha256: 2c85de62d30bd58db0fdeb567bb39c00f08158d5e250ed92e1c0a04aaf805110

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

class CreateLogs < ActiveRecord::Migration
  def self.up
    create_table :logs do |t|
      t.integer :user_id, :null => false
      t.string  :action
      t.string  :error

      t.timestamps
    end
  end

  def self.down
    drop_table :logs
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ava_rails_generator-0.0.3 templates/003_create_logs.rb