Sunday, 21 July 2013

rails annotate gem

#use annotate gem to annotate your models
#add gem 'annotate' and annotate from app dir it will generate this in all models
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# uid :text
# name :string(255)
# link :string(255)
# username :string(255)
# hometown :string(255)
# location :string(255)
# quotes :text
# gender :string(255)
# created_at :datetime
# updated_at :datetime
# email :string(255) default(""), not null
# encrypted_password :string(128) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# token :text
# provider :string(255)
# image :string(255)
# latitude :float
# longitude :float
# token_local :text
#

No comments:

Post a Comment