Sha256: 836d3a7af023c7d30a14fa66af520270fac0799c98ff39d25728b8311422553a

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

class CreateTasksTaskablesImageResponses < ActiveRecord::Migration
  def change
    create_table :tasks_taskables_image_responses do |t|
      t.string :image
      t.references :request, index: true
      t.references :author, polymorphic: true

      t.timestamps
    end

    add_index :tasks_taskables_image_responses, [:author_id, :author_type], unique: true, name: 'tasks_taskable_image_responses_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140402135306_create_tasks_taskables_image_responses.rb
tasuku-1.0.1 db/migrate/20140402135306_create_tasks_taskables_image_responses.rb
tasuku-0.1.1 db/migrate/20140402135306_create_tasks_taskables_image_responses.rb
tasuku-0.1.0 db/migrate/20140402135306_create_tasks_taskables_image_responses.rb
tasuku-0.0.1 db/migrate/20140402135306_create_tasks_taskables_image_responses.rb