Sha256: 531037e232e1b29a9709c6a5529f64f8646d89e08eeda7435af1c99706a9daf9

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

class CreateUserTaggings < ActiveRecord::Migration
  def change
    create_table :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 :user_taggings, :picture_id
    add_index :user_taggings, :user_id
    add_index :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_user_taggings.rb
family_gallery-0.0.7 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.6 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.5 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.4 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.3 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.2 db/plugin_migrate/20150301144620_create_user_taggings.rb
family_gallery-0.0.1 db/plugin_migrate/20150301144620_create_user_taggings.rb