Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Add comments to schema/structure functions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim committed Aug 26, 2015
1 parent 3c066df commit 54bfb16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .oh-my-zsh-custom/functions.zsh
Expand Up @@ -6,6 +6,8 @@ function tlog() {
fi
}

# schema - list table names
# schema users - show structure of table users
function schema() {
if test "$1" = ""; then
grep 'create_table' db/schema.rb | cut -d \" -f2
Expand All @@ -14,6 +16,8 @@ function schema() {
fi
}

# structure - list table names
# structure users - show structure of table users
function structure() {
if test "$1" = ""; then
grep 'CREATE TABLE' db/structure.sql | cut -d " " -f3
Expand Down

0 comments on commit 54bfb16

Please sign in to comment.