Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansaphonehandler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
ansaphonehandler
Commits
b584e01f
Commit
b584e01f
authored
19 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
First attempt at database definition.
parent
cff24c45
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/migrate/001_initial.rb
+30
-0
30 additions, 0 deletions
db/migrate/001_initial.rb
with
30 additions
and
0 deletions
db/migrate/001_initial.rb
0 → 100644
+
30
−
0
View file @
b584e01f
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment