Sha256: e6cc75c6860f2c36316e5c4656cf55f324b2c8e52a419eb9d1a338a9b67a8b27

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

class CreateFormolPollOptions < ActiveRecord::Migration
  def change
    create_table :formol_poll_options do |t|
      t.belongs_to  :poll
      t.string      :answer,        :limit => 32
      t.integer     :votes_count
    end
    
    add_index :formol_poll_options, :poll_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 db/migrate/20120110152618_create_formol_poll_options.rb
formol-0.0.5 db/migrate/20120110152618_create_formol_poll_options.rb
formol-0.0.4 db/migrate/20120110152618_create_formol_poll_options.rb