Cross Reference:
xref
: /
ontohub
/
db
/
migrate
/
20141112202311_add_szs_statuses.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
20141112202311_add_szs_statuses.rb revision e200ddd4b78a4915a072095be2a2e6cac65ed333
class
AddSzsStatuses
<
ActiveRecord
::
Migration
def
up
create_table
:
proof_statuses
,
id
:
false
do
|t|
t.string
:
identifier
,
primary_key
:
true
t.string
:
name
t.string
:
label
,
null
:
false
,
default
:
'primary'
t.text
:
description
t.boolean
:
solved
end
rename_column
:
proof_attempts
, :
status
, :
proof_status_id
rename_column
:
sentences
, :
proof_status
, :
proof_status_id
end
def
down
remove_table
:
proof_statuses
end
end