Sha256: f81154f10b64f99a17ec5948f0d2b6cc46a1b04aee3537f5e6471f4d571d5fd6

Contents?: true

Size: 359 Bytes

Versions: 22

Compression:

Stored size: 359 Bytes

Contents

class CreateDiscoAppPlanCodes < ActiveRecord::Migration
  def change
    create_table :disco_app_plan_codes do |t|
      t.integer :plan_id, limit: 8
      t.string :code
      t.integer :trial_period_days
      t.integer :amount

      t.timestamps null: false
    end

    add_foreign_key :disco_app_plan_codes, :disco_app_plans, column: :plan_id
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
disco_app-0.8.8 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.8.9 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.0 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.1 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.2 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.3 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.4 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.5 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.6 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.7 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.8 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.9 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.10 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.9.11 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.0 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.1 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.2 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.3 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.4 db/migrate/20160331093148_create_disco_app_plan_codes.rb
disco_app-0.10.5 db/migrate/20160331093148_create_disco_app_plan_codes.rb