These migrations and models were added after the Rails 5 branch was created but before it was merged.
6 lines
155 B
Ruby
6 lines
155 B
Ruby
class AddBudgetToPolls < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_reference :polls, :budget, index: { unique: true }, foreign_key: true
|
|
end
|
|
end
|