002_create_states.rb

来自「基于ruby的进阶编程,大家可以对照教材<<Ruby on Rail」· RB 代码 · 共 12 行

RB
12
字号
class CreateStates < ActiveRecord::Migration  def self.up    create_table :states do |t|      # t.column :name, :string    end  end  def self.down    drop_table :states  endend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?