small medium large xlarge

Back to: All Forums  Take My Money
Duccioarmenise_pragsmall
10 Aug 2017, 08:45
Duccio Armenise - P.IVA 01360060113 (2 posts)

Hello, in the CreateSubscription Migration there is a strange line, shown below:

# subscription/01/db/migrate/20160730192952_create_subscriptions.rb
class CreateSubscriptions < ActiveRecord::Migration[5.0]

  def change
    create_table :subscriptions do |t|
      t.references :user, foreign_key: true
      t.references :plan, foreign_key: true
      t.date :start_date
      t.date :end_date
      t.integer :status
      t.string :payment_method
      t.string :remote_id
      t.string :string # <= is this one really needed?

      t.timestamps
    end
  end

end

Is line 20 really needed or is it just a typo?

Thank you

Head_shot_pragsmall
10 Aug 2017, 11:55
Noel Rappin (49 posts)

Probably a typo caused when I generated the migration.

You must be logged in to comment