Sha256: 521ff26a683ab3abec7d1e482f847c274065a88a32e262197e941b39b18dbc12

Contents?: true

Size: 442 Bytes

Versions: 10

Compression:

Stored size: 442 Bytes

Contents

class CreateFlexibleFeedsVotes < ActiveRecord::Migration
  def change
    create_table :flexible_feeds_votes do |t|
      t.integer :event_id
      t.integer :voter_id
      t.string :voter_type
      t.integer :value, null: false, default: 0

      t.timestamps
    end

    add_index :flexible_feeds_votes, :event_id
    add_index :flexible_feeds_votes,
      [:voter_id, :voter_type],
      name: "flexible_feeds_votes_on_voter"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flexible_feeds-0.4.0 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.6 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.5 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.4 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.3 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.2 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.1 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.3.0 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.2.1 db/migrate/20140227195140_create_flexible_feeds_votes.rb
flexible_feeds-0.1.0 db/migrate/20140227195140_create_flexible_feeds_votes.rb