I'm still having problem with running migrations. I've tried the code below:
class FormStatusField < V 1.1
add_column(Reviewform.table_name, :status, :string)
And with ActiveRecord 4.0.4 this gives me the error below:
NoMethodError at /form/new
undefined method `status' for
in|method_missing|, line 439
The column is not added which I confirm by browsing the sql table.
I've tried the later AR version, namely 4.2.0 and I can't even run the
initial migration. I guess this is related to this issue
As this problem in general is probably related to AR, can someone
confirm for which AR version migrations run fine.
This is crucial to my app as I need to deploy it productively this month
and currently I can bypass this issue only by switching databases and
refactor the initial migration.
Additional note: this code from the book also didn't work
AddTagColumn < V 1.1|
Page.table_name, :tag, :string|
Camping-list mailing list