Navigation Menu

Skip to content

Commit

Permalink
schema: Insert type_flag method
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Feb 19, 2014
1 parent 5cc58e1 commit e29c07f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/droonga/catalog/schema.rb
Expand Up @@ -99,7 +99,7 @@ def normalizer
@data["normalizer"]
end

def flags
def type_flag
case type
when "Array"
"TABLE_NO_KEY"
Expand All @@ -114,6 +114,10 @@ def flags
end
end

def flags
type_flag
end

def to_table_create_body
body = {
"name" => name,
Expand Down

0 comments on commit e29c07f

Please sign in to comment.