Show More
Commit Description:
Update rails version to '3.2.19' to compensate with issue stated by nattee on pull request #4 of cafe-grader-judge-scripts, add view of list_all action
Commit Description:
Update rails version to '3.2.19' to compensate with issue stated by nattee on pull request #4 of cafe-grader-judge-scripts, add view of list_all action
References:
File last commit:
Show/Diff file:
Action:
db/migrate/030_create_announcements.rb
| 15 lines
| 265 B
| text/x-ruby
| RubyLexer
|
|
r97 | class CreateAnnouncements < ActiveRecord::Migration | ||
def self.up | ||||
create_table :announcements do |t| | ||||
t.string :author | ||||
t.text :body | ||||
t.boolean :published | ||||
t.timestamps | ||||
end | ||||
end | ||||
def self.down | ||||
drop_table :announcements | ||||
end | ||||
end | ||||