Sha256: 3dcff7da1a58165829c43bdc709d3b4d357472cd2727e36a6a584fae631691cf
Contents?: true
Size: 425 Bytes
Versions: 16
Compression:
Stored size: 425 Bytes
Contents
class TranslationCenterActsAsVotableMigration < ActiveRecord::Migration def self.up create_table :votes do |t| t.references :votable, :polymorphic => true t.references :voter, :polymorphic => true t.boolean :vote_flag t.timestamps end add_index :votes, [:votable_id, :votable_type] add_index :votes, [:voter_id, :voter_type] end def self.down drop_table :votes end end
Version data entries
16 entries across 8 versions & 1 rubygems