Sha256: 76099eb7713c3945c91675bb83149cab60e1866df6669891f0f8b59142d87f02
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
class Backlogs < ActiveRecord::Migration def self.up create_table :backlogs do |table| table.column :name, :string, :limit => 32, :null => false end execute "INSERT INTO backlogs (id,name) VALUES (1,'Default Backlog')" add_column :tasks, :backlog_id, :integer, :null => false, :default => 1 end def self.down remove_column :tasks, :backlog_id drop_table :backlogs end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.0.0 | db/migrate/002_backlogs.rb |
backlog-0.0.1 | db/migrate/002_backlogs.rb |
backlog-0.0.2 | db/migrate/002_backlogs.rb |
backlog-0.0.4 | db/migrate/002_backlogs.rb |