german / redis_orm

ORM for Redis
MIT License
89 stars 16 forks source link

Add model generator #4

Closed satoryu closed 11 years ago

satoryu commented 11 years ago

This pull request provides model generator.

bundle exec rails g model post title:string created_at:time -o redis_orm

this generator creates model file. in the above case, the following model is created.

class Post < RedisOrm::Base
  property :title, String
  property :created_at, Time
end
german commented 11 years ago

@satoryu Thanks for your code, excellent work! I like the way you organized spec folder and I'll move all tests into it eventually. The only thing I corrected is the version of rails in .gemspec file.