Class: Pose::Jobs::InitialMigration
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- Pose::Jobs::InitialMigration
- Defined in:
- lib/pose/jobs/install.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pose/jobs/install.rb', line 4 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 |