Sha256: 79d2ca1920eb2009b988423380031c747b1541272ecb586865dd8a994cf4ffe1

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

class CreateTasksTaskablesTextResponses < ActiveRecord::Migration
  def change
    create_table :tasks_taskables_text_responses do |t|
      t.text :text
      t.references :request
      t.references :author, polymorphic: true

      t.timestamps
    end

    add_index :tasks_taskables_text_responses, [:author_id, :author_type], unique: true, name: 'tasks_taskable_text_responses_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140514082143_create_tasks_taskables_text_responses.rb
tasuku-1.0.1 db/migrate/20140514082143_create_tasks_taskables_text_responses.rb
tasuku-0.1.1 db/migrate/20140514082143_create_tasks_taskables_text_responses.rb
tasuku-0.1.0 db/migrate/20140514082143_create_tasks_taskables_text_responses.rb
tasuku-0.0.1 db/migrate/20140514082143_create_tasks_taskables_text_responses.rb