git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@2 ff88604e-da85-c949-a72f-fc3aa3ba3724
21 lines
437 B
Ruby
21 lines
437 B
Ruby
class CreateNotes < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :notes do |t|
|
|
t.string :subject
|
|
t.text :content
|
|
t.integer :source_id
|
|
t.string :source_type
|
|
t.integer :author_id
|
|
t.datetime :created_on
|
|
t.datetime :updated_on
|
|
end
|
|
add_index :notes, [:source_id, :source_type]
|
|
add_index :notes, [:author_id]
|
|
|
|
end
|
|
|
|
def self.down
|
|
drop_table :notes
|
|
end
|
|
end
|