Sha256: dec4cbde478e87dc39ab892bb72b1ff7ca0c0f4d3531f3c810e061b9ca90c588

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

# vim: set nosta noet ts=4 sw=4:

### The initial Thingfish::Metastore::PG DDL.
###
class Initial < Sequel::Migration

	def up
		create_schema( :thingfish, if_not_exists: true )
		create_table( :thingfish__metadata ) do
			uuid        :oid,           primary_key: true
			text        :format,        null: false
			int         :extent,        null: false
			timestamptz :created,       null: false, default: Sequel.function(:now)
			inet        :uploadaddress, null: false
			jsonb       :user_metadata, null: false, default: '{}'
		end
	end

	def down
		drop_table( :thingfish__metadata )
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thingfish-metastore-pg-0.2.0 data/thingfish-metastore-pg/migrations/20150114_initial.rb
thingfish-metastore-pg-0.1.1 data/thingfish-metastore-pg/migrations/20150114_initial.rb
thingfish-metastore-pg-0.1.0.pre20160627113019 data/thingfish-metastore-pg/migrations/20150114_initial.rb