Sha256: 2e5d448789d9e39a95f7e20d34695dc7b9443c1fdb04ed26824b81ce8fe2afa0

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

class CreateTasksTaskablesURLResponses < ActiveRecord::Migration
  def change
    create_table :tasks_taskables_url_responses do |t|
      t.text :url
      t.references :request, index: true
      t.references :author, polymorphic: true

      t.timestamps
    end

    add_index :tasks_taskables_url_responses, [:author_id, :author_type], unique: true, name: 'tasks_taskable_url_responses_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140512074135_create_tasks_taskables_url_responses.rb
tasuku-1.0.1 db/migrate/20140512074135_create_tasks_taskables_url_responses.rb
tasuku-0.1.1 db/migrate/20140512074135_create_tasks_taskables_url_responses.rb
tasuku-0.1.0 db/migrate/20140512074135_create_tasks_taskables_url_responses.rb
tasuku-0.0.1 db/migrate/20140512074135_create_tasks_taskables_url_responses.rb