Sha256: bc3f9421793bb698c0b94ec6fb5edbe09556e991feb4726384cd7c37ef71a9ae
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
require "dm-migrations" require "migration_runner" include DataMapper::Types migration 1, :initial do up do create_table :integrity_projects do column :id, Serial column :name, String, :nullable => false column :permalink, String column :uri, URI, :nullable => false column :branch, String, :nullable => false, :default => "master" column :command, String, :nullable => false, :default => "rake" column :public, Boolean, :default => true column :building, Boolean, :default => false column :created_at, DateTime column :updated_at, DateTime column :build_id, Serial column :notifier_id,Serial end create_table :integrity_builds do column :id, Serial column :output, Text, :nullable => false, :default => "" column :successful, Boolean, :nullable => false, :default => false column :commit_identifier, String, :nullable => false column :commit_metadata, Yaml, :nullable => false column :created_at, DateTime column :updated_at, DateTime column :project_id, Serial end create_table :integrity_notifiers do column :id, Serial column :name, String, :nullable => false column :config, Yaml, :nullable => false column :project_id, Serial end end down do drop_table :integrity_notifiers drop_table :integrity_projects drop_table :integrity_builds end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foca-integrity-0.1.6 | lib/integrity/migrations.rb |