Sha256: 7accfab8dd23bc068e7b96280bfa54db321229c3248bb830a407d46f297384cb

Contents?: true

Size: 358 Bytes

Versions: 33

Compression:

Stored size: 358 Bytes

Contents

class CreatePaidUpPlansTable < ActiveRecord::Migration
  def change
    create_table :paid_up_plans do |t|
      t.string :stripe_id
      t.string :title
      t.text :description
      t.integer :sort_order

      t.timestamps
    end
    add_index :paid_up_plans, :title, :unique => true
    add_index :paid_up_plans, :stripe_id, :unique => true
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
paid_up-0.9.13 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.12 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.11 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.10 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.9 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.8 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.7 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.6 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.5 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.4 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.3 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.2 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.1 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.9.0 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.8.1 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.7.11 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.7.10 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.7.9 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.7.8 db/migrate/20150407110101_create_paid_up_plans_table.rb
paid_up-0.7.7 db/migrate/20150407110101_create_paid_up_plans_table.rb