Farmbot-Web-App/db/migrate/20180407131311_add_archived...

12 lines
523 B
Ruby
Raw Normal View History

2018-04-07 14:09:31 -06:00
class AddArchivedAtToPoints < ActiveRecord::Migration[5.1]
2019-11-07 12:35:10 -07:00
2018-04-07 14:09:31 -06:00
def change
add_column :points, :archived_at, :datetime, default: nil
add_column :points, :planted_at, :datetime, default: nil
add_column :points, :openfarm_slug, :string, limit: 280, default: "50", null: false
add_column :points, :plant_stage, :string, limit: 10, default: "planned"
add_column :points, :tool_id, :integer
add_column :points, :pullout_direction, :integer, default: 0
end
end