Sha256: 1ef894803577c8cd8159371ff47e64ca507426a80d800f298113d1d35bca6427

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

Sequel.migration do
  change do
    alter_table(:manual_approvals) do
      add_column :created_at, DateTime
      add_column :updated_at, DateTime
    end

    LicenseFinder::DB << <<-SQL
      UPDATE manual_approvals
      SET
        created_at = datetime('now'),
        updated_at = datetime('now')
    SQL
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
license_finder-1.2 db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.2-java db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.1.1-java db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.1.1 db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.1.0 db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.0.1 db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
license_finder-1.0.0.1 db/migrate/201403191419_add_timestamps_to_manual_approvals.rb