Sha256: de34c63e883c831b557456075136be2d41c3adc6aa7e34990dd2baab61479a67

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

module Pose
  module Jobs
    class InitialMigration < ActiveRecord::Migration
      def change
        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

    # Creates the Pose tables in the database.
    class Install
      def perform
        InitialMigration.new.change
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pose-3.2.0 lib/pose/jobs/install.rb
pose-3.1.1 lib/pose/jobs/install.rb