Sha256: bb382b847f2f3497f1be06aa3117b400c96af25210501e8f7ff10d7785c06e76

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

  class CreateTableEventPublisherRules < ActiveRecord::Migration
    def self.up
      create_table :event_publishing_rules do |t|
        t.string :bu_id
        t.string :entity_type
        t.string :status

      end
      add_index :event_publishing_rules, :bu_id, :name => "bu_id_idx"
      add_index :event_publishing_rules, :entity_type, :name => "entity_type_idx"
      add_index :event_publishing_rules, :status, :name => "status_idx"


      def self.down
        drop_table :event_publishing_rules
      end
    end
  end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
apl-library-0.0.90 db/migrate/20140623085602_create_table_event_publisher_rules.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/db/migrate/20140623085602_create_table_event_publisher_rules.rb