Sha256: c2b6753a851f5f2864ff25c7ed68b81c5eaf078c7cad25ab09968556f02f6e8d

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

class CreateStripeSkus < ActiveRecord::Migration[5.0]
  def change
    create_table :stripe_skus do |t|
      t.string :stripe_id, index: true, null: false
      t.boolean :active, default: false, null: false
      t.datetime :deleted_at, index: true
      t.text :stripe_attributes
      t.string :currency, null: false
      t.integer :inventory_quantity
      t.string :inventory_type
      t.string :inventory_value
      t.boolean :livemode
      t.text :metadata
      t.integer :price_cents
      t.string :price_currency
      t.string :stripe_product_id, index: true
      t.datetime :created
      t.datetime :updated
      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stripe_model_callbacks-0.1.7 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.6 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.5 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.4 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.3 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.2 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.1 db/migrate/20180206115814_create_stripe_skus.rb
stripe_model_callbacks-0.1.0 db/migrate/20180206115814_create_stripe_skus.rb