Sha256: b6600e20c236ee8f60916e75500882772c3239a3368a396449b2609ed97f84e2

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

class PoseMigrations < 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", :word_id
    add_index "pose_assignments", :wordable_id

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

    add_index "words", :text
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pose-0.0.3 lib/generators/templates/migration.rb
pose-0.0.2 lib/generators/templates/migration.rb