Skip to content

Commit

Permalink
Updates docs and description
Browse files Browse the repository at this point in the history
  • Loading branch information
danmcclain committed Aug 23, 2013
1 parent 59a63c3 commit 42dc442
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 240 deletions.
49 changes: 1 addition & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PostgresExt

Adds support for missing PostgreSQL data types to ActiveRecord.
Provides a helpful querying API for Rails 4 + PostgreSQL

[![Build Status](https://secure.travis-ci.org/dockyard/postgres_ext.png?branch=master)](http://travis-ci.org/dockyard/postgres_ext)
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/dockyard/postgres_ext)
Expand Down Expand Up @@ -36,54 +36,7 @@ Or install it yourself as:
Just `require 'postgres_ext'` and use ActiveRecord as you normally would! postgres\_ext extends
ActiveRecord's data type handling.

* [Migration/Schema.rb support](docs/migrations.md)
* [Type Casting support](docs/type_casting.md)
* [Querying PostgreSQL datatypes](docs/querying.md)
* [Indexes](docs/indexes.md)

## Usage Notes
Avoid the use of in place operators (ie `Array#<<`). These changes are
*not* tracked by Rails ([this issue](https://github.com/rails/rails/issues/6954))
explains why). In place modifications also modify the default object.

Assuming we have the following model:

```ruby
create_table :items do |t|
t.string :names, :array => true, :default => []
end

class Item < ActiveRecord::Base
end
```

The following will modify the default value of the names attribute.

```ruby
a = Item.new
a.names << 'foo'

b = Item.new
puts b.names
# => ['foo']
```

The supported way of modifying `a.names`:

```ruby
a = Item.new
a.names += ['foo']

b = Item.new
puts b.names
# => []
```

As a result, in place operators are discouraged and will not be
supported in postgres\_ext at this time.




## Authors

Expand Down
28 changes: 0 additions & 28 deletions docs/indexes.md

This file was deleted.

92 changes: 0 additions & 92 deletions docs/migrations.md

This file was deleted.

70 changes: 0 additions & 70 deletions docs/type_casting.md

This file was deleted.

4 changes: 2 additions & 2 deletions postgres_ext.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ require File.expand_path('../lib/postgres_ext/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["Dan McClain"]
gem.email = ["[email protected]"]
gem.description = %q{Adds missing native PostgreSQL data types to ActiveRecord}
gem.summary = %q{Extends ActiveRecord to handle native PostgreSQL data types}
gem.description = %q{Provides a helpful querying API for Rails 4 + PostgreSQL}
gem.summary = %q{Provides a helpful querying API for Rails 4 + PostgreSQL}
gem.homepage = ""

gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
Expand Down

0 comments on commit 42dc442

Please sign in to comment.