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