Sha256: 35bf5d6f48d05d157b945e59a7ce6f89437b3bed0e9e48bc6e458272c67f7599

Contents?: true

Size: 618 Bytes

Versions: 10

Compression:

Stored size: 618 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

10 entries across 10 versions & 1 rubygems

Version Path
pose-1.1.0 lib/generators/templates/migration.rb
pose-1.0.0 lib/generators/templates/migration.rb
pose-0.3 lib/generators/templates/migration.rb
pose-0.2.6 lib/generators/templates/migration.rb
pose-0.2.5 lib/generators/templates/migration.rb
pose-0.2.4 lib/generators/templates/migration.rb
pose-0.2.3 lib/generators/templates/migration.rb
pose-0.2.2 lib/generators/templates/migration.rb
pose-0.2.1 lib/generators/templates/migration.rb
pose-0.2 lib/generators/templates/migration.rb