Commit 6f0bb0b3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add a missing free plan to the database

parent ac312d73
class CreateMissingFreePlan < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
class Plan < ActiveRecord::Base
self.table_name = 'plans'
end
def up
Plan.create!(name: 'free', title: 'Free')
end
def down
Plan.find_by(name: 'free')&.destroy!
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170929080234) do
ActiveRecord::Schema.define(version: 20171002105019) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment