Add :null => false to the timestamps

In migration timestamp fields use :null => false option. Let use the same option in the mini_record
fix version number
Merge pull request #26 from virtax/master

Add :null => false to the timestamps
Support of foreign_key db constrains was added with using foreigner gem:
   index name, :foreign=>true
The foreign keys are automatically added and deleted.
The gem file temporary point out to the fixed, compatible with mini_record fork of foreigner.
Update README.md

Support of foreign_key db constrains were added with using foreigner gem:
index :some_external_id, :foreign=>true
The foreign keys are automatically added and deleted.
The gem file temporary point out to the fixed, compatible with mini_record fork of foreigner.
Merge pull request #27 from virtax/master

Support of foreign key db constraints were added with using of foreigner gem
Support for custom ':foreign_key' option in the 'belongs_to' used with 'index ..., :foreign=>true' was added.
For example:

class Book < ActiveRecord::Base
  belongs_to :second_publisher, :foreign_key => 'second_publisher_id', :class_name => 'Publisher'
  index :second_publisher_id, :foreign => true
end
Merge branch 'master' of https://github.com/virtax/mini_record
1. Support for custom ':foreign_key' option in the 'belongs_to' used with 'index ..., :foreign=>true' was added.
For example:

class Book < ActiveRecord::Base
  belongs_to :second_publisher, :foreign_key => 'second_publisher_id', :class_name => 'Publisher'
  index :second_publisher_id, :foreign => true
end

2. Update source of Foreigner gem to the official gem source
3. Fix compatibility issue with acts_as_votable gem
Merge pull request #28 from virtax/master

Support for custom ':foreign_key' option in the 'belongs_to' used with 'index ..., :foreign=>true' was added.
Bug of comparison of string and symbol was fixed when adding foreign key
Minimize quantity of sql queries to detecting foreign keys.
Now this query are executed for every model. It is very annoyed in development environment, since model files are reloaded on every web request and we got an additional query for every model.
After this patch the query will be executed only for models with ':foreign' option in the 'index'.
Also version of ActiveRecord was limited to <=3.2, since the gem incompatible with ActiveRecord 4.0
Merge pull request #29 from virtax/master

Bugfix for comparison of string and symbol when adding foreign key
Abstract classes should not spawn tables