-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change prices.valid_from to NOT NULL
- Loading branch information
Artur Beljajev
committed
Oct 16, 2017
1 parent
49745d7
commit 0883fce
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
db/migrate/20171016053749_change_price_valid_from_to_not_null.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ChangePriceValidFromToNotNull < ActiveRecord::Migration | ||
def change | ||
change_column_null :prices, :valid_from, false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters