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