Class: CreateShows
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateShows
- Defined in:
- lib/generators/tvdb/templates/show.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
21 22 23 |
# File 'lib/generators/tvdb/templates/show.rb', line 21 def self.down drop_table :shows end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/tvdb/templates/show.rb', line 2 def self.up create_table :shows do |t| t.string :name t.string :airsDayOfWeek t.string :airsTime t.string :firstAired t.string :genre t.string :network t.text :overview t.string :rating t.string :ratingCount t.string :runtime t.string :status t.string :poster t. end end |