Create legal documents

This commit is contained in:
Martin Lensment 2014-12-29 17:19:27 +02:00
parent 4f10cccdfa
commit e09ddd3138
10 changed files with 274 additions and 7 deletions

View file

@ -0,0 +1,11 @@
class CreateLegalDocuments < ActiveRecord::Migration
def change
create_table :legal_documents do |t|
t.string :document_type
t.text :body
t.references :documentable, polymorphic: true
t.timestamps
end
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20141218154829) do
ActiveRecord::Schema.define(version: 20141229115619) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -245,6 +245,15 @@ ActiveRecord::Schema.define(version: 20141218154829) do
t.datetime "updated_at"
end
create_table "legal_documents", force: true do |t|
t.string "document_type"
t.text "body"
t.integer "documentable_id"
t.string "documentable_type"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "messages", force: true do |t|
t.integer "registrar_id"
t.string "body"