Sha256: c0230b3ba514b4fc96d77bcacbf064c1e3e531de63301bfe649cb46a47ac89e5

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

class InstallPose < 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

4 entries across 4 versions & 1 rubygems

Version Path
pose-1.3.4 lib/generators/pose/install/templates/install_migration.rb
pose-1.3.3 lib/generators/pose/install/templates/install_migration.rb
pose-1.3.2 lib/generators/pose/install/templates/install_migration.rb
pose-1.3.1 lib/generators/pose/install/templates/install_migration.rb