Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cfb2869b
authored
Oct 10, 2017
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added rails version to migrations
parent
734d37a6
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
25 additions
and
25 deletions
db/migrate/20160515193612_create_db_folders.rb
db/migrate/20160515201220_create_db_files.rb
db/migrate/20160516000545_create_db_streams.rb
db/migrate/20160516024809_add_path_to_db_files.rb
db/migrate/20160517012203_add_parent_to_db_folders.rb
db/migrate/20160517015954_add_path_to_folder.rb
db/migrate/20160520145007_create_dbs.rb
db/migrate/20160522180603_create_nilms.rb
db/migrate/20160524023257_create_db_decimations.rb
db/migrate/20160524023832_add_fields_to_file.rb
db/migrate/20160524161457_add_data_type_to_db_files.rb
db/migrate/20160524161816_add_data_type_to_db_decimations.rb
db/migrate/20160709231829_add_name_abbrev_to_db_file.rb
db/migrate/20160709232003_add_delete_locked_to_db_file.rb
db/migrate/20160709232731_rename_scale_to_scale_factor_in_db_streams.rb
db/migrate/20160709232846_add_plottable_to_db_stream.rb
db/migrate/20160709234451_remove_int_from_db_decimations.rb
db/migrate/20160709235828_add_hidden_to_db_file.rb
db/migrate/20170104203706_change_file_to_stream.rb
db/migrate/20170104205821_rename_foreign_element_key.rb
db/migrate/20170104205937_rename_foreign_decimation_key.rb
db/migrate/20170104213820_extended_decimation_level_range.rb
db/migrate/20170118011117_add_items_to_db_folders.rb
db/migrate/20170118011803_fix_db_folder_attr.rb
db/migrate/20170118013812_add_db_to_db_stream.rb
db/migrate/20160515193612_create_db_folders.rb
View file @
cfb2869b
class
CreateDbFolders
<
ActiveRecord
::
Migration
class
CreateDbFolders
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:db_folders
do
|
t
|
t
.
string
:name
...
...
db/migrate/20160515201220_create_db_files.rb
View file @
cfb2869b
class
CreateDbFiles
<
ActiveRecord
::
Migration
class
CreateDbFiles
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:db_files
do
|
t
|
t
.
string
:name
...
...
db/migrate/20160516000545_create_db_streams.rb
View file @
cfb2869b
class
CreateDbStreams
<
ActiveRecord
::
Migration
class
CreateDbStreams
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:db_streams
do
|
t
|
t
.
string
:name
...
...
db/migrate/20160516024809_add_path_to_db_files.rb
View file @
cfb2869b
class
AddPathToDbFiles
<
ActiveRecord
::
Migration
class
AddPathToDbFiles
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_files
,
:path
,
:string
end
...
...
db/migrate/20160517012203_add_parent_to_db_folders.rb
View file @
cfb2869b
class
AddParentToDbFolders
<
ActiveRecord
::
Migration
class
AddParentToDbFolders
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_folders
,
:parent_id
,
:integer
end
...
...
db/migrate/20160517015954_add_path_to_folder.rb
View file @
cfb2869b
class
AddPathToFolder
<
ActiveRecord
::
Migration
class
AddPathToFolder
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_folders
,
:path
,
:string
end
...
...
db/migrate/20160520145007_create_dbs.rb
View file @
cfb2869b
class
CreateDbs
<
ActiveRecord
::
Migration
class
CreateDbs
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:dbs
do
|
t
|
t
.
string
:url
...
...
db/migrate/20160522180603_create_nilms.rb
View file @
cfb2869b
class
CreateNilms
<
ActiveRecord
::
Migration
class
CreateNilms
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:nilms
do
|
t
|
t
.
string
:name
...
...
db/migrate/20160524023257_create_db_decimations.rb
View file @
cfb2869b
class
CreateDbDecimations
<
ActiveRecord
::
Migration
class
CreateDbDecimations
<
ActiveRecord
::
Migration
[
5.0
]
def
change
create_table
:db_decimations
do
|
t
|
t
.
integer
:start_time
,
:int
,
:limit
=>
8
...
...
db/migrate/20160524023832_add_fields_to_file.rb
View file @
cfb2869b
class
AddFieldsToFile
<
ActiveRecord
::
Migration
class
AddFieldsToFile
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_decimations
,
:level
,
:integer
add_column
:db_files
,
:start_time
,
:integer
,
limit:
8
...
...
db/migrate/20160524161457_add_data_type_to_db_files.rb
View file @
cfb2869b
class
AddDataTypeToDbFiles
<
ActiveRecord
::
Migration
class
AddDataTypeToDbFiles
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_files
,
:data_type
,
:string
end
...
...
db/migrate/20160524161816_add_data_type_to_db_decimations.rb
View file @
cfb2869b
class
AddDataTypeToDbDecimations
<
ActiveRecord
::
Migration
class
AddDataTypeToDbDecimations
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_decimations
,
:data_type
,
:string
end
...
...
db/migrate/20160709231829_add_name_abbrev_to_db_file.rb
View file @
cfb2869b
class
AddNameAbbrevToDbFile
<
ActiveRecord
::
Migration
class
AddNameAbbrevToDbFile
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_files
,
:name_abbrev
,
:string
end
...
...
db/migrate/20160709232003_add_delete_locked_to_db_file.rb
View file @
cfb2869b
class
AddDeleteLockedToDbFile
<
ActiveRecord
::
Migration
class
AddDeleteLockedToDbFile
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_files
,
:delete_locked
,
:boolean
end
...
...
db/migrate/20160709232731_rename_scale_to_scale_factor_in_db_streams.rb
View file @
cfb2869b
class
RenameScaleToScaleFactorInDbStreams
<
ActiveRecord
::
Migration
class
RenameScaleToScaleFactorInDbStreams
<
ActiveRecord
::
Migration
[
5.0
]
def
change
rename_column
:db_streams
,
:scale
,
:scale_factor
end
...
...
db/migrate/20160709232846_add_plottable_to_db_stream.rb
View file @
cfb2869b
class
AddPlottableToDbStream
<
ActiveRecord
::
Migration
class
AddPlottableToDbStream
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_streams
,
:plottable
,
:boolean
add_column
:db_streams
,
:discrete
,
:boolean
...
...
db/migrate/20160709234451_remove_int_from_db_decimations.rb
View file @
cfb2869b
class
RemoveIntFromDbDecimations
<
ActiveRecord
::
Migration
class
RemoveIntFromDbDecimations
<
ActiveRecord
::
Migration
[
5.0
]
def
change
remove_column
:db_decimations
,
:int
end
...
...
db/migrate/20160709235828_add_hidden_to_db_file.rb
View file @
cfb2869b
class
AddHiddenToDbFile
<
ActiveRecord
::
Migration
class
AddHiddenToDbFile
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_files
,
:hidden
,
:boolean
add_column
:db_folders
,
:hidden
,
:boolean
...
...
db/migrate/20170104203706_change_file_to_stream.rb
View file @
cfb2869b
# frozen_string_literal: true
class
ChangeFileToStream
<
ActiveRecord
::
Migration
class
ChangeFileToStream
<
ActiveRecord
::
Migration
[
5.0
]
def
change
rename_table
:db_streams
,
:db_elements
rename_table
:db_files
,
:db_streams
...
...
db/migrate/20170104205821_rename_foreign_element_key.rb
View file @
cfb2869b
# frozen_string_literal: true
class
RenameForeignElementKey
<
ActiveRecord
::
Migration
class
RenameForeignElementKey
<
ActiveRecord
::
Migration
[
5.0
]
def
change
rename_column
:db_elements
,
:db_file_id
,
:db_stream_id
end
...
...
db/migrate/20170104205937_rename_foreign_decimation_key.rb
View file @
cfb2869b
# frozen_string_literal: true
class
RenameForeignDecimationKey
<
ActiveRecord
::
Migration
class
RenameForeignDecimationKey
<
ActiveRecord
::
Migration
[
5.0
]
def
change
rename_column
:db_decimations
,
:db_file_id
,
:db_stream_id
end
...
...
db/migrate/20170104213820_extended_decimation_level_range.rb
View file @
cfb2869b
# frozen_string_literal: true
class
ExtendedDecimationLevelRange
<
ActiveRecord
::
Migration
class
ExtendedDecimationLevelRange
<
ActiveRecord
::
Migration
[
5.0
]
def
change
change_column
:db_decimations
,
:level
,
:integer
,
limit:
8
end
...
...
db/migrate/20170118011117_add_items_to_db_folders.rb
View file @
cfb2869b
class
AddItemsToDbFolders
<
ActiveRecord
::
Migration
class
AddItemsToDbFolders
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_folders
,
:db_id
,
:integer
add_column
:db_folders
,
:start_time
,
:integer
,
limit:
8
...
...
db/migrate/20170118011803_fix_db_folder_attr.rb
View file @
cfb2869b
class
FixDbFolderAttr
<
ActiveRecord
::
Migration
class
FixDbFolderAttr
<
ActiveRecord
::
Migration
[
5.0
]
def
change
rename_column
:db_folders
,
:end_ime
,
:end_time
end
...
...
db/migrate/20170118013812_add_db_to_db_stream.rb
View file @
cfb2869b
class
AddDbToDbStream
<
ActiveRecord
::
Migration
class
AddDbToDbStream
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:db_streams
,
:db_id
,
:integer
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment