Mercurial > zeropaste
annotate db/migrate/20150914054154_add_language_to_paste.rb @ 460:b1ef80121c79
Update to use correct timestamp datatype
Use sql dump instead of ruby because zone info would be lost otherwise.
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 25 Jun 2018 16:53:47 +0900 |
parents | 080dd141898c |
children | 4608d12ebe03 |
rev | line source |
---|---|
417
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
diff
changeset
|
1 class AddLanguageToPaste < ActiveRecord::Migration |
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
diff
changeset
|
2 def change |
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
diff
changeset
|
3 add_column :pastes, :language, :string |
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
diff
changeset
|
4 end |
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
diff
changeset
|
5 end |