Files
grecia/db/migrate/20190104160114_create_active_polls.rb
Javi Martín 91a3184281 Simplify creating timestamps in migrations
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.
2019-10-24 21:20:16 +02:00

8 lines
155 B
Ruby

class CreateActivePolls < ActiveRecord::Migration[4.2]
def change
create_table :active_polls do |t|
t.timestamps null: false
end
end
end