Sha256: 4c57554401af58b689025add609937948ebfd194fb90bf0c7ee2390b73efaf05

Contents?: true

Size: 575 Bytes

Versions: 5

Compression:

Stored size: 575 Bytes

Contents

class CreateTasksTaskablesVerificationConfirmations < ActiveRecord::Migration
  def change
    create_table :tasks_taskables_verification_confirmations do |t|
      t.references :verification
      t.references :author, polymorphic: true

      t.timestamps
    end

    add_index :tasks_taskables_verification_confirmations, [:verification_id], name: 'tasks_taskable_verification_confirmation_verification'
    add_index :tasks_taskables_verification_confirmations, [:author_id, :author_type], unique: true, name: 'tasks_taskable_verification_confirmation_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140315153512_create_tasks_taskables_verification_confirmations.rb
tasuku-1.0.1 db/migrate/20140315153512_create_tasks_taskables_verification_confirmations.rb
tasuku-0.1.1 db/migrate/20140315153512_create_tasks_taskables_verification_confirmations.rb
tasuku-0.1.0 db/migrate/20140315153512_create_tasks_taskables_verification_confirmations.rb
tasuku-0.0.1 db/migrate/20140315153512_create_tasks_taskables_verification_confirmations.rb