Mercurial > hg > soundsoftware-site
annotate .svn/pristine/10/10ba4b3e5a7a93b2f988725561d5c82a7bd53485.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class CreateComments < ActiveRecord::Migration |
Chris@909 | 2 def self.up |
Chris@909 | 3 create_table :comments do |t| |
Chris@909 | 4 t.column :commented_type, :string, :limit => 30, :default => "", :null => false |
Chris@909 | 5 t.column :commented_id, :integer, :default => 0, :null => false |
Chris@909 | 6 t.column :author_id, :integer, :default => 0, :null => false |
Chris@909 | 7 t.column :comments, :text |
Chris@909 | 8 t.column :created_on, :datetime, :null => false |
Chris@909 | 9 t.column :updated_on, :datetime, :null => false |
Chris@909 | 10 end |
Chris@909 | 11 end |
Chris@909 | 12 |
Chris@909 | 13 def self.down |
Chris@909 | 14 drop_table :comments |
Chris@909 | 15 end |
Chris@909 | 16 end |