Sha256: a5e49d43eccf9140f2dde73a59a31c9a6bf999e10543a96c31243facef71091a

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

class CreateFormolPolls < ActiveRecord::Migration
  def change
    create_table :formol_polls do |t|
      t.belongs_to  :topic
      t.string      :question,    :limit => 64
      t.integer     :duration
      t.integer     :max_options
      t.integer     :votes_count
      t.datetime    :created_at
    end
    
    add_index :formol_polls,  :topic_id, :unique => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 db/migrate/20120110152548_create_formol_polls.rb
formol-0.0.5 db/migrate/20120110152548_create_formol_polls.rb
formol-0.0.4 db/migrate/20120110152548_create_formol_polls.rb