Skip to content

Commit 9b7a2a0

Browse files
WorldofJARcraftcaustt
authored andcommitted
Fix is_active migration (#144)
* Do a proper change default migration. * Restore deleted migration. * Renamed new migration so it is run at the same point in time. * Update schema. * Run deployment from this branch to fix migrations. * Use db schema from dev. * Run deployment from dev, not from this branch.
1 parent e1ffcde commit 9b7a2a0

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class AddIsActiveToPoll < ActiveRecord::Migration[5.2]
22
def change
3-
add_column :polls, :is_active, :boolean, null: false, default: true
3+
add_column :polls, :is_active, :boolean, null: false, default: false
44
end
55
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ChangeIsActiveDefault < ActiveRecord::Migration[5.2]
2+
def change
3+
change_column_default :polls, :is_active, true
4+
end
5+
end

deployment.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ then
55
elif [ "$TRAVIS_BRANCH" = "dev" ]
66
then
77
export APP="hpi-lectureportal-dev";
8+
export APP="hpi-lectureportal-dev";
89
else
910
echo "No deployment on branch $TRAVIS_BRANCH";
1011
exit 0
@@ -21,4 +22,4 @@ then
2122
else
2223
echo "Docker build failed!"
2324
exit 1
24-
fi
25+
fi

0 commit comments

Comments
 (0)