lib/ridgepole/dsl_parser.rb in ridgepole-0.6.0 vs lib/ridgepole/dsl_parser.rb in ridgepole-0.6.1.beta

- old
+ new

@@ -20,12 +20,12 @@ :type => type, :options => options, } end - # https://github.com/winebarrel/rails/blob/v4.2.1/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb#L274 TYPES = [ + # https://github.com/winebarrel/rails/blob/v4.2.1/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb#L274 :string, :text, :integer, :bigint, :float, @@ -34,9 +34,35 @@ :timestamp, :time, :date, :binary, :boolean, + + # https://github.com/winebarrel/rails/blob/v4.2.1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L79 + :daterange, + :numrange, + :tsrange, + :tstzrange, + :int4range, + :int8range, + :binary, + :boolean, + :bigint, + :xml, + :tsvector, + :hstore, + :inet, + :cidr, + :macaddr, + :uuid, + :json, + :jsonb, + :ltree, + :citext, + :point, + :bit, + :bit_varying, + :money, ] TYPES.each do |column_type| define_method column_type do |*args| options = args.extract_options!