Sha256: fcb77e6f0f9550d1d837d8789f6b4d3f5216a965d5b3837385ad665fd2c22ed9

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

class CreateDashboardSettings < ActiveRecord::Migration

  def up
    unless table_exists?(:dashboard_settings)
      create_table :dashboard_settings do |t|
        t.references :user, index: true, foreign_key: false
        t.string :widget
        t.string :action
        t.index [:widget, :action]
      end
    end
  end

  def down
    drop_table :dashboard_settings if table_exists? :dashboard_settings
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dashboard-rails-1.0.0 lib/generators/templates/create_taxweb_widgets_users.rb