Ruby on Rails Monday, January 19, 2015

hi, im getting the error outlined in the subject. this is the migration:
add_column :tier_3_discount_groups, :description, :text  unless Tier3DiscountGroup.column_names.include?('description')


here is the model:
filename: 
tier_3_discount_group.rb
content:
class Tier3DiscountGroup < ActiveRecord::Base
end


create-migration:
filename:
20141209204148_create_tier_3_discountount_groups.rb
content:
class CreateTier3DiscountountGroups < ActiveRecord::Migration
  def change
    create_table :tier_3_discountount_groups do |t|
      t.string :name
      t.timestamps
    end
  end
end


> where is my mistake?

thx


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdVK57zc%2Bf2%2BtAWJmnvbOQnU6E4vMc-hWFKZ0%2B7dVXxEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment