Sha256: a2b5df19e10fd9d69a650fe491cd67d73bfb494936cbad096215d9395cdf9adf

Contents?: true

Size: 594 Bytes

Versions: 11

Compression:

Stored size: 594 Bytes

Contents

class AddPoseTables < ActiveRecord::Migration

  def self.up
    create_table "pose_assignments" do |t|
      t.integer "pose_word_id",            null: false
      t.integer "posable_id",              null: false
      t.string  "posable_type", limit: 40, null: false
    end

    add_index "pose_assignments", :pose_word_id
    add_index "pose_assignments", :posable_id

    create_table "pose_words" do |t|
      t.string "text", limit: 80, null: false
    end

    add_index "pose_words", :text
  end

  def self.down
    drop_table 'pose_assignments'
    drop_table 'pose_words'
  end
end

Version data entries

11 entries across 10 versions & 1 rubygems

Version Path
pose-1.3 lib/generators/pose/install/templates/install_migration.rb
pose-1.2.5 lib/generators/pose/install/templates/install_migration.rb
pose-1.2.4 lib/rails/generators/templates/add_migration.rb
pose-1.2.4 lib/generators/templates/add_migration.rb
pose-1.2.3 lib/generators/templates/migration.rb
pose-1.2.2 lib/generators/templates/migration.rb
pose-1.2.1 lib/generators/templates/migration.rb
pose-1.2.0 lib/generators/templates/migration.rb
pose-1.1.3 lib/generators/templates/migration.rb
pose-1.1.2 lib/generators/templates/migration.rb
pose-1.1.1 lib/generators/templates/migration.rb