Sha256: 82c564966f51078663a0667e80b9ae824483c2679ffd7b471b1156647d08237a

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

class CreateSusplySubscriptions < ActiveRecord::Migration
  def change
    create_table :susply_subscriptions do |t|
      t.integer :owner_id
      t.integer :plan_id
      t.timestamp :start
      t.timestamp :current_period_start
      t.timestamp :current_period_end
      t.integer :quantity
      t.timestamp :deactivated_at

      t.timestamps null: false
    end

    add_index :susply_subscriptions, :owner_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
susply-1.0.0 db/migrate/20150513180124_create_susply_subscriptions.rb
susply-0.0.2 db/migrate/20150513180124_create_susply_subscriptions.rb
susply-0.0.1 db/migrate/20150513180124_create_susply_subscriptions.rb