Sha256: 816e92069cf2cba1ee8c665fb23aad8cf4e3488e1369a4f33363ff286265922c

Contents?: true

Size: 844 Bytes

Versions: 9

Compression:

Stored size: 844 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.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 :query
      t.string :state
      t.text :emails
      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blazer-1.2.1 lib/generators/blazer/templates/install.rb
blazer-1.2.0 lib/generators/blazer/templates/install.rb
blazer-1.1.1 lib/generators/blazer/templates/install.rb
blazer-1.1.0 lib/generators/blazer/templates/install.rb
blazer-1.0.4 lib/generators/blazer/templates/install.rb
blazer-1.0.3 lib/generators/blazer/templates/install.rb
blazer-1.0.2 lib/generators/blazer/templates/install.rb
blazer-1.0.1 lib/generators/blazer/templates/install.rb
blazer-1.0.0 lib/generators/blazer/templates/install.rb