first I have run this command
rails generate model FeedbackComment type:smallint reply:text
after then
rake db:migrate
I am getting this error
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `smallint' for #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition:0x9d1a318>/var/www/blog/db/migrate/20140712064127_create_feedback_comments.rb:4:in `block in change'
How can i create smallint through command in postgreSQL ?
Please hellp me