Sha256: 311a4843b5a9cab3406f4eec0ce97f9c9798c1ef90624d6f9c1c7d02cfb65cdd

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

Sequel.migration do
	change do
		#migration data
		self[:registry_settings].insert([:registry_application_id, :settings, :comments, :updated_at],
    	self[:registry_applications].select(:id, :settings, :comments, :updated_at))
		#drop column
		alter_table(:registry_applications) do
			drop_column :comments
			drop_column :settings
			rename_column :updated_at, :end_at
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocp_registry-0.0.5.pre lib/ocp_registry/db/003_alter_comments_column_in_applications_table.rb