diff options
Diffstat (limited to 'db/migrate/20100131022034_create_identities.rb')
-rw-r--r-- | db/migrate/20100131022034_create_identities.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/db/migrate/20100131022034_create_identities.rb b/db/migrate/20100131022034_create_identities.rb new file mode 100644 index 0000000..5d533ab --- /dev/null +++ b/db/migrate/20100131022034_create_identities.rb @@ -0,0 +1,33 @@ +# Copyright (C) 2007, 2008, 2009, 2010 Heiko Bernloehr (FreeIT.de). +# +# This file is part of ECS. +# +# ECS is free software: you can redistribute it and/or modify it +# under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# ECS is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public +# License along with ECS. If not, see <http://www.gnu.org/licenses/>. + + +class CreateIdentities < ActiveRecord::Migration + def self.up + create_table :identities do |t| + t.integer :participant_id + t.string :name + t.text :description + + t.timestamps + end + end + + def self.down + drop_table :identities + end +end |