Commit cfb2869b by John Doe

added rails version to migrations

parent 734d37a6
class CreateDbFolders < ActiveRecord::Migration
class CreateDbFolders < ActiveRecord::Migration[5.0]
def change
create_table :db_folders do |t|
t.string :name
......
class CreateDbFiles < ActiveRecord::Migration
class CreateDbFiles < ActiveRecord::Migration[5.0]
def change
create_table :db_files do |t|
t.string :name
......
class CreateDbStreams < ActiveRecord::Migration
class CreateDbStreams < ActiveRecord::Migration[5.0]
def change
create_table :db_streams do |t|
t.string :name
......
class AddPathToDbFiles < ActiveRecord::Migration
class AddPathToDbFiles < ActiveRecord::Migration[5.0]
def change
add_column :db_files, :path, :string
end
......
class AddParentToDbFolders < ActiveRecord::Migration
class AddParentToDbFolders < ActiveRecord::Migration[5.0]
def change
add_column :db_folders, :parent_id, :integer
end
......
class AddPathToFolder < ActiveRecord::Migration
class AddPathToFolder < ActiveRecord::Migration[5.0]
def change
add_column :db_folders, :path, :string
end
......
class CreateDbs < ActiveRecord::Migration
class CreateDbs < ActiveRecord::Migration[5.0]
def change
create_table :dbs do |t|
t.string :url
......
class CreateNilms < ActiveRecord::Migration
class CreateNilms < ActiveRecord::Migration[5.0]
def change
create_table :nilms do |t|
t.string :name
......
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
......
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
......
class AddDataTypeToDbFiles < ActiveRecord::Migration
class AddDataTypeToDbFiles < ActiveRecord::Migration[5.0]
def change
add_column :db_files, :data_type, :string
end
......
class AddDataTypeToDbDecimations < ActiveRecord::Migration
class AddDataTypeToDbDecimations < ActiveRecord::Migration[5.0]
def change
add_column :db_decimations, :data_type, :string
end
......
class AddNameAbbrevToDbFile < ActiveRecord::Migration
class AddNameAbbrevToDbFile < ActiveRecord::Migration[5.0]
def change
add_column :db_files, :name_abbrev, :string
end
......
class AddDeleteLockedToDbFile < ActiveRecord::Migration
class AddDeleteLockedToDbFile < ActiveRecord::Migration[5.0]
def change
add_column :db_files, :delete_locked, :boolean
end
......
class RenameScaleToScaleFactorInDbStreams < ActiveRecord::Migration
class RenameScaleToScaleFactorInDbStreams < ActiveRecord::Migration[5.0]
def change
rename_column :db_streams, :scale, :scale_factor
end
......
class AddPlottableToDbStream < ActiveRecord::Migration
class AddPlottableToDbStream < ActiveRecord::Migration[5.0]
def change
add_column :db_streams, :plottable, :boolean
add_column :db_streams, :discrete, :boolean
......
class RemoveIntFromDbDecimations < ActiveRecord::Migration
class RemoveIntFromDbDecimations < ActiveRecord::Migration[5.0]
def change
remove_column :db_decimations, :int
end
......
class AddHiddenToDbFile < ActiveRecord::Migration
class AddHiddenToDbFile < ActiveRecord::Migration[5.0]
def change
add_column :db_files, :hidden, :boolean
add_column :db_folders, :hidden, :boolean
......
# 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
......
# 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
......
# 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
......
# 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
......
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
......
class FixDbFolderAttr < ActiveRecord::Migration
class FixDbFolderAttr < ActiveRecord::Migration[5.0]
def change
rename_column :db_folders, :end_ime, :end_time
end
......
class AddDbToDbStream < ActiveRecord::Migration
class AddDbToDbStream < ActiveRecord::Migration[5.0]
def change
add_column :db_streams, :db_id, :integer
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment