エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ActiveRecord::ConnectionAdapters::SchemaStatements
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
ActiveRecord::ConnectionAdapters::SchemaStatements
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 378... # File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 378 def add_column(table_name, column_name, type, options = {}) at = create_alter_table table_name at.add_column(column_name, type, options) execute schema_creation.accept at end Adds a new foreign key. from_table is the table with the key column, to_table contains the referenced primary key. The foreign

