Sha256: b3ce3ef6285bba82f49962f94e5a17b641047d743ca2fb3c24a51b380b7ecf44

Contents?: true

Size: 250 Bytes

Versions: 32

Compression:

Stored size: 250 Bytes

Contents

class CreateTaggings < ActiveRecord::Migration
  def change
    create_table :taggings do |t|
      t.references :image
      t.references :tag

      t.timestamps
    end
    add_index :taggings, :image_id
    add_index :taggings, :tag_id
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
lentil-1.0.5 db/migrate/20121119211236_create_taggings.rb
lentil-1.0.4 db/migrate/20121119211236_create_taggings.rb
lentil-1.0.3 db/migrate/20121119211236_create_taggings.rb
lentil-1.0.2 db/migrate/20121119211236_create_taggings.rb
lentil-1.0.1 db/migrate/20121119211236_create_taggings.rb
lentil-1.0.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.9.1 db/migrate/20121119211236_create_taggings.rb
lentil-0.9.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.8.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.7.1 db/migrate/20121119211236_create_taggings.rb
lentil-0.6.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.5.2 db/migrate/20121119211236_create_taggings.rb
lentil-0.5.1 db/migrate/20121119211236_create_taggings.rb
lentil-0.5.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.4.2 db/migrate/20121119211236_create_taggings.rb
lentil-0.4.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.3.1 db/migrate/20121119211236_create_taggings.rb
lentil-0.3.0 db/migrate/20121119211236_create_taggings.rb
lentil-0.2.3 db/migrate/20121119211236_create_taggings.rb
lentil-0.2.2 db/migrate/20121119211236_create_taggings.rb