postgresql - DB:migrate fails on Heroku due NAMEDATALEN -


i appreciate easiness of deploying apps heroku far. has been great experience. however, repeatedly error, , cannot find cause it. work on latest rails framework. uploaded , app running. however, added columns tables , tried rake db:migrate command, when following error:

input string longer namedatalen-1 (63)

when googled it, found out, 63 maximum length of input string table name etc. in postgresql. however, checked table names, , none comes close it. have suggestions why migration fails?

the migration in question following:

    class createposts < activerecord::migration   def self.up     create_table :posts |t|       t.text :data, :null => false       t.string :category, :null => false       t.string :zip, :limit => 5       t.boolean :published       t.integer :submittedby, :limit => 20       t.integer :reviewedby, :limit => 20         t.integer :likecount,       t.timestamps     end   end    def self.down     drop_table :posts   end end 

the error caused comma after :likecount.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -