Sha256: 7a05454dddbf9a8ff072a113591e1b04b78d3496bd2929d2818e75dde5358b47

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

class CreateHatchyRewards < ActiveRecord::Migration
  def change
    create_table :hatchy_rewards do |t|
      t.belongs_to  :project
      t.decimal     :min_value,         null: false
      t.integer     :max_contributions
      t.string      :description,       null: false
      t.integer     :row_order
      t.datetime    :deliver_at,        null: false
      t.timestamps
    end
    add_index :hatchy_rewards, :project_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hatchy-0.0.6.pre db/migrate/20160111175124_create_hatchy_rewards.rb
hatchy-0.0.5.pre db/migrate/20160111175124_create_hatchy_rewards.rb