summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2014-12-02 05:37:36 -0500
committerValery Sizov <valery@gitlab.com>2014-12-02 05:37:36 -0500
commit351bc92cecabd7edd5bc4ceb751daea124b7c68e (patch)
treee80cf5c941619c51d361d43eb1b8452a18e097bf
parenta12aa6c409e73d13a1f48ea611cb04e0bc956324 (diff)
downloadgitlab-ci-351bc92cecabd7edd5bc4ceb751daea124b7c68e.tar.gz
fix project creation
-rw-r--r--db/migrate/20141202153844_make_script_nullable.rb5
-rw-r--r--db/schema.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20141202153844_make_script_nullable.rb b/db/migrate/20141202153844_make_script_nullable.rb
new file mode 100644
index 0000000..3d4b29f
--- /dev/null
+++ b/db/migrate/20141202153844_make_script_nullable.rb
@@ -0,0 +1,5 @@
+class MakeScriptNullable < ActiveRecord::Migration
+ def change
+ change_column :projects, :scripts, :text, null: true
+ end
+end \ No newline at end of file
diff --git a/db/schema.rb b/db/schema.rb
index 73830b6..429880b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20141104153744) do
+ActiveRecord::Schema.define(version: 20141202153844) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -71,7 +71,7 @@ ActiveRecord::Schema.define(version: 20141104153744) do
create_table "projects", force: true do |t|
t.string "name", null: false
t.integer "timeout", default: 1800, null: false
- t.text "scripts", null: false
+ t.text "scripts"
t.datetime "created_at"
t.datetime "updated_at"
t.string "token"