Sha256: 3a62d77ec69cdc7c4ebaf255da8e772427dc42b758ad8d296200fc18333deda2

Contents?: true

Size: 217 Bytes

Versions: 13

Compression:

Stored size: 217 Bytes

Contents

class CreateChoices < ActiveRecord::Migration
  def change
    create_table :choices do |t|
      t.belongs_to :question
      t.string :name

      t.timestamps
    end
    add_index :choices, :question_id
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ask-0.5.4 db/migrate/20110913214255_create_choices.rb
ask-0.5.3 db/migrate/20110913214255_create_choices.rb
ask-0.5.2 db/migrate/20110913214255_create_choices.rb
ask-0.5.1 db/migrate/20110913214255_create_choices.rb
ask-0.5.0 db/migrate/20110913214255_create_choices.rb
ask-0.4.1 db/migrate/20110913214255_create_choices.rb
ask-0.4.0 db/migrate/20110913214255_create_choices.rb
ask-0.3.1 db/migrate/20110913214255_create_choices.rb
ask-0.3.0 db/migrate/20110913214255_create_choices.rb
ask-0.2.0 db/migrate/20110913214255_create_choices.rb
ask-0.1.2 db/migrate/20110913214255_create_choices.rb
ask-0.1.1 db/migrate/20110913214255_create_choices.rb
ask-0.1.0 db/migrate/20110913214255_create_choices.rb