Sha256: 14e2f010fefa8253c7de7a8a06479f7f3a0e3a9343980da8e11df28435fa6b75

Contents?: true

Size: 533 Bytes

Versions: 8

Compression:

Stored size: 533 Bytes

Contents

class CreateFamilyGalleryUserTaggings < ActiveRecord::Migration
  def change
    create_table :family_gallery_user_taggings do |t|
      t.belongs_to :picture
      t.belongs_to :user
      t.belongs_to :tagged_by
      t.decimal :position_top, precision: 10, scale: 2
      t.decimal :position_left, precision: 10, scale: 2
      t.timestamps
    end

    add_index :family_gallery_user_taggings, :picture_id
    add_index :family_gallery_user_taggings, :user_id
    add_index :family_gallery_user_taggings, :tagged_by_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
family_gallery-0.0.8 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.7 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.6 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.5 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.4 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.3 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.2 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb
family_gallery-0.0.1 db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb