Sha256: 61cb7f9c80e7b819ab311eae1af1680c7626d28449cbdbd0d544f5585ac71424

Contents?: true

Size: 291 Bytes

Versions: 32

Compression:

Stored size: 291 Bytes

Contents

class AddLastRevalidatedAtOnPullRequests < ActiveRecord::Migration[5.0]
  def up
    add_column :pull_requests, :revalidated_at, :datetime
    Shipit::PullRequest.update_all('revalidated_at = merge_requested_at')
  end

  def down
    remove_column :pull_requests, :revalidated_at
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.38.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.37.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.36.1 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.36.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.35.1 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.35.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.34.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.33.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.32.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.31.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.30.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.29.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.28.1 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.28.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.27.1 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.27.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.26.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.25.1 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb
shipit-engine-0.25.0 db/migrate/20170221130336_add_last_revalidated_at_on_pull_requests.rb