Skip to content
Snippets Groups Projects
Commit b584e01f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

First attempt at database definition.

parent cff24c45
No related branches found
No related tags found
No related merge requests found
class Initial < ActiveRecord::Migration
def self.up
create_table (:users,
:options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
t.column :username, :string
end
create_table (:recordings,
:options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
t.column :cid, :string
t.column :from, :string
t.column :when, :datetime
t.column :user_id, :integer
end
create_table (:call_attempts,
:options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
t.column :cid, :string
t.column :from, :string
t.column :when, :datetime
end
end
def self.down
drop_table :users
drop_table :recordings
drop_table :call_attempts
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment