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.
12 lines
240 B
Ruby
12 lines
240 B
Ruby
class CreateBudgetBallots < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :budget_ballots do |t|
|
|
t.references :geozone
|
|
t.references :user
|
|
t.references :budget
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|