Module: HasTokenId::TableDefinition

Defined in:
lib/has_token_id/table_definition.rb

Instance Method Summary collapse

Instance Method Details

#token(*args) ⇒ Object



6
7
8
9
10
# File 'lib/has_token_id/table_definition.rb', line 6

def token(*args)
  options = { length: HasTokenId.default_token_options[:length] }.merge(args.extract_options!)
  puts "opeiont: #{options}"
  column(:token, :string, options.merge(nil: false))
end