Sha256: b3d7378223aa8f6becc538058266519163c63ebe15800f5b42facf55d09fcfa4

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

class AddPoseTables < ActiveRecord::Migration

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

  def self.down
    create_table "pose_assignments" do |t|
      t.integer "word_id",                 null: false
      t.integer "posable_id",              null: false
      t.string  "posable_type", limit: 60, null: false
    end
    add_index "pose_assignments", :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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pose-3.0.0 lib/generators/pose/remove/templates/remove_migration.rb
pose-2.1.0 lib/generators/pose/remove/templates/remove_migration.rb
pose-2.0.1 lib/generators/pose/remove/templates/remove_migration.rb
pose-2.0.0 lib/generators/pose/remove/templates/remove_migration.rb