We were using the `timestamps` method most of the time, but sometimes we were creating the columns manually. Note editing past migrations if fine as long as the SQL they generate remains identical, which is the case here.
11 lines
253 B
Ruby
11 lines
253 B
Ruby
class CreateBudgetBallotLines < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :budget_ballot_lines do |t|
|
|
t.integer :ballot_id, index: true
|
|
t.integer :investment_id, index: true
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|