source:
ruby/trunk/db/migrate/20100702073455_create_languages.rb@
415
Last change on this file since 415 was 415, checked in by , 14 years ago | |
---|---|
File size: 259 bytes |
Rev | Line | |
---|---|---|
[415] | 1 | class CreateLanguages < ActiveRecord::Migration |
2 | def self.up | |
3 | create_table :languages, :id => false do |t| | |
4 | t.string :code, :null => false | |
5 | t.string :description, :null => false | |
6 | end | |
7 | end | |
8 | ||
9 | def self.down | |
10 | drop_table :languages | |
11 | end | |
12 | end |
Note:
See TracBrowser
for help on using the repository browser.