Skip to content

Commit

Permalink
use lapis annotate to annotate models, update annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Nov 15, 2015
1 parent 7b644f8 commit e6880e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 60 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -31,3 +31,5 @@ build:
local: build
luarocks make --local lapis-community-dev-1.rockspec

annotate_models: clean_dev
lapis annotate $$(find community/models -type f | grep moon$$)
59 changes: 0 additions & 59 deletions cmd/annotate_models.moon

This file was deleted.

4 changes: 3 additions & 1 deletion community/models/categories.moon
Expand Up @@ -25,10 +25,12 @@ import slugify from require "lapis.util"
-- hidden boolean DEFAULT false NOT NULL,
-- created_at timestamp without time zone NOT NULL,
-- updated_at timestamp without time zone NOT NULL,
-- category_groups_count integer DEFAULT 0 NOT NULL
-- category_groups_count integer DEFAULT 0 NOT NULL,
-- "position" integer DEFAULT 0 NOT NULL
-- );
-- ALTER TABLE ONLY community_categories
-- ADD CONSTRAINT community_categories_pkey PRIMARY KEY (id);
-- CREATE INDEX community_categories_parent_category_id_position_idx ON community_categories USING btree (parent_category_id, "position") WHERE (parent_category_id IS NOT NULL);
--
class Categories extends Model
@timestamp: true
Expand Down

0 comments on commit e6880e1

Please sign in to comment.