Sha256: 0066f6b9a37e511ec3baff2d2af11d33ca1b73ce0bacb0be9bada2a143999b4f

Contents?: true

Size: 284 Bytes

Versions: 17

Compression:

Stored size: 284 Bytes

Contents

class CreateNeutralVotings < ActiveRecord::Migration
  def change
    create_table :neutral_votings do |t|
      t.string :votingable_type
      t.integer :votingable_id
      t.integer :positive, default: 0
      t.integer :negative, default: 0

      t.timestamps
    end
  end
end

Version data entries

17 entries across 10 versions & 1 rubygems

Version Path
neutral-0.0.10 spec/dummy/db/migrate/20170101120001_create_neutral_votings.rb
neutral-0.0.9 spec/dummy/db/migrate/20170101120001_create_neutral_votings.rb
neutral-0.0.8 spec/dummy/db/migrate/20170101120001_create_neutral_votings.rb
neutral-0.0.7 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.7 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.6 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.6 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.5 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.5 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.4 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.4 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.3 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.3 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.2 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb
neutral-0.0.2 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.1 lib/generators/neutral/install/templates/votings.rb
neutral-0.0.1 spec/dummy/db/migrate/20140118172808882161_create_neutral_votings.rb