Sha256: ffb3eb58f68f784cc807905d26faa38297a9d6e05f8895c2b8f067debb9558b8

Contents?: true

Size: 624 Bytes

Versions: 20

Compression:

Stored size: 624 Bytes

Contents

class CreateReleaseStatuses < ActiveRecord::Migration[5.1]
  def change
    create_table :release_statuses do |t|
      t.references :stack, foreign_key: false, null: false, index: false
      t.references :commit, foreign_key: false, null: false, index: false
      t.references :user, foreign_key: false, null: true

      t.string :state, limit: 10, null: false
      t.string :description, limit: 1024, null: true
      t.string :target_url, limit: 1024, null: true

      t.bigint :github_id, null: true

      t.timestamps

      t.index %i(commit_id github_id)
      t.index %i(stack_id commit_id)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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