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.
8 lines
155 B
Ruby
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
|