Cross Reference: 20150805075102_add_file_extension_p.rb
xref
: /
ontohub
/
db
/
migrate
/
20150805075102_add_file_extension_p.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
AddFileExtensionP
<
ActiveRecord
::
Migration
def
up
ActiveRecord
::
Base.connection
.
execute
(
"INSERT INTO ontology_file_extensions (extension, distributed) VALUES ('.p', 'false')"
)
end
def
down
ActiveRecord
::
Base.connection
.
execute
(
"DELETE FROM ontology_file_extensions WHERE extension='.p'"
)
end
end