Sha256: c79f19de379ce865fd18c6cca51246a1cc019bb712051643d941009144634df1

Contents?: true

Size: 1005 Bytes

Versions: 8

Compression:

Stored size: 1005 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  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
    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
    end

    create_table :blazer_dashboard_queries do |t|
      t.references :dashboard
      t.references :query
      t.integer :position
      t.timestamps
    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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blazer-1.7.2 lib/generators/blazer/templates/install.rb
blazer-1.7.1 lib/generators/blazer/templates/install.rb
blazer-1.7.0 lib/generators/blazer/templates/install.rb
blazer-1.6.2 lib/generators/blazer/templates/install.rb
blazer-1.6.1 lib/generators/blazer/templates/install.rb
blazer-1.6.0 lib/generators/blazer/templates/install.rb
blazer-1.5.1 lib/generators/blazer/templates/install.rb
blazer-1.5.0 lib/generators/blazer/templates/install.rb