Sha256: e2daf49d5a16be498fa6f89987d44f409a45e9284d81134a3f1272a591938e7b

Contents?: true

Size: 1.02 KB

Versions: 63

Compression:

Stored size: 1.02 KB

Contents

class InstallBlazer < ActiveRecord::Migration[5.0]
  def change
    create_table :blazer_queries do |t|
      t.references :creator
      t.string :name
      t.text :description
      t.text :statement
      t.string :data_source
      t.timestamps null: false
    end

    create_table :blazer_audits do |t|
      t.references :user
      t.references :query
      t.text :statement
      t.string :data_source
      t.timestamp :created_at
    end

    create_table :blazer_dashboards do |t|
      t.references :creator
      t.text :name
      t.timestamps null: false
    end

    create_table :blazer_dashboard_queries do |t|
      t.references :dashboard
      t.references :query
      t.integer :position
      t.timestamps null: false
    end

    create_table :blazer_checks do |t|
      t.references :creator
      t.references :query
      t.string :state
      t.string :schedule
      t.text :emails
      t.string :check_type
      t.text :message
      t.timestamp :last_run_at
      t.timestamps null: false
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
hackathon_manager-0.14.1 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.14.0 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.12 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.11 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.10 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.9 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.8 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.7 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.6 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.5 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.4 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.3 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.2 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.1 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.13.0 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.12.2 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.12.1 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.12.0 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.11.2 db/migrate/20170128063020_install_blazer.rb
hackathon_manager-0.11.1 db/migrate/20170128063020_install_blazer.rb