Sha256: 4fc91986a0cec0244fe47bd1aa5d8d87d77b759349297e45ca0bd92e51fd6a0c

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

class CreateFormolPollVotes < ActiveRecord::Migration
  def change
    create_table :formol_poll_votes do |t|
      t.belongs_to  :option
      t.belongs_to  :voter
      t.datetime    :created_at
    end
    
    add_index :formol_poll_votes, :voter_id
    add_index :formol_poll_votes, :option_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 db/migrate/20120110152632_create_formol_poll_votes.rb
formol-0.0.5 db/migrate/20120110152632_create_formol_poll_votes.rb
formol-0.0.4 db/migrate/20120110152632_create_formol_poll_votes.rb