```ruby
class CreateOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :orders do |t|

      t.timestamps
    end
  end
end
```

Edit migration, add :user_id to Orders table
user
```ruby
class CreateOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :orders do |t|
      t.integer :user_id

      t.timestamps
    end
  end
end
```
assistant