Sha256: 1aec22e1144480f735764a1c482bee45850194cf622668e190a5488c203a0d53

Contents?: true

Size: 1.1 KB

Versions: 32

Compression:

Stored size: 1.1 KB

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  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.string :status
      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.datetime :created_at
    end

    create_table :blazer_dashboards do |t|
      t.references :creator
      t.string :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.text :slack_channels
      t.string :check_type
      t.text :message
      t.datetime :last_run_at
      t.timestamps null: false
    end
  end
end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
blazer-3.1.0 lib/generators/blazer/templates/install.rb.tt
blazer-3.0.4 lib/generators/blazer/templates/install.rb.tt
blazer_xlsx-3.0.8 lib/generators/blazer/templates/install.rb.tt
blazer_xlsx-3.0.7 lib/generators/blazer/templates/install.rb.tt
blazer_xlsx-3.0.6 lib/generators/blazer/templates/install.rb.tt
blazer_xlsx-3.0.5 lib/generators/blazer/templates/install.rb.tt
blazer-3.0.3 lib/generators/blazer/templates/install.rb.tt
blazer-3.0.2 lib/generators/blazer/templates/install.rb.tt
finery-3.0.3 lib/generators/blazer/templates/install.rb.tt
finery-3.0.2 lib/generators/blazer/templates/install.rb.tt
blazer-3.0.1 lib/generators/blazer/templates/install.rb.tt
finery-3.0.1 lib/generators/blazer/templates/install.rb.tt
finery-3.0.0 lib/generators/blazer/templates/install.rb.tt
blazer-3.0.0 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.5 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.4 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.3 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.2 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.1 lib/generators/blazer/templates/install.rb.tt
blazer-2.6.0 lib/generators/blazer/templates/install.rb.tt